Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

NG Staff Member Category

// Register Custom Taxonomy
function ng_staff_category() {

	$labels = array(
		'name'                       => _x( 'Staff Member Categories', 'Taxonomy General Name', 'nectar_group' ),
		'singular_name'              => _x( 'Staff Member Category', 'Taxonomy Singular Name', 'nectar_group' ),
		'menu_name'                  => __( 'Staff Member Category', 'nectar_group' ),
		'all_items'                  => __( 'All Staff Member Categories', 'nectar_group' ),
		'parent_item'                => __( 'Parent Staff Member Category', 'nectar_group' ),
		'parent_item_colon'          => __( 'Parent Item:', 'nectar_group' ),
		'new_item_name'              => __( 'New Staff Member Category Name', 'nectar_group' ),
		'add_new_item'               => __( 'Add New Staff Member Category', 'nectar_group' ),
		'edit_item'                  => __( 'Edit Staff Member Category', 'nectar_group' ),
		'update_item'                => __( 'Update Staff Member Category', 'nectar_group' ),
		'view_item'                  => __( 'View Staff Member Category', 'nectar_group' ),
		'separate_items_with_commas' => __( 'Separate items with commas', 'nectar_group' ),
		'add_or_remove_items'        => __( 'Add or remove Staff Member Categories', 'nectar_group' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'nectar_group' ),
		'popular_items'              => __( 'Popular Items', 'nectar_group' ),
		'search_items'               => __( 'Search Items', 'nectar_group' ),
		'not_found'                  => __( 'Not Found', 'nectar_group' ),
		'no_terms'                   => __( 'No items', 'nectar_group' ),
		'items_list'                 => __( 'Items list', 'nectar_group' ),
		'items_list_navigation'      => __( 'Items list navigation', 'nectar_group' ),
	);
	$rewrite = array(
		'slug'                       => 'staff-member-category',
		'with_front'                 => true,
		'hierarchical'               => false,
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'rewrite'                    => $rewrite,
		'show_in_rest'               => true,
	);
	register_taxonomy( 'ng_staff_category', array( 'ng_staff_member' ), $args );

}
add_action( 'init', 'ng_staff_category', 0 );