Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Team Member Categories

This goes with wcd_team_member cpt

// Register Custom Taxonomy
function team_member_category() {

	$labels = array(
		'name'                       => 'Team Member Categories',
		'singular_name'              => 'Team Member Category',
		'menu_name'                  => 'Team Member Category',
		'all_items'                  => 'All Team Member Categories',
		'parent_item'                => 'Parent Team Member Category',
		'parent_item_colon'          => 'Parent Team Member Category:',
		'new_item_name'              => 'New Team Member Category Name',
		'add_new_item'               => 'Add New Team Member Category',
		'edit_item'                  => 'Edit Team Member Category',
		'update_item'                => 'Update Team Member Category',
		'view_item'                  => 'View Team Member Category',
		'separate_items_with_commas' => 'Separate team member categories with commas',
		'add_or_remove_items'        => 'Add or remove team member categories',
		'choose_from_most_used'      => 'Choose from the most used',
		'popular_items'              => 'Popular Team Member Categories',
		'search_items'               => 'Search Team Member Categories',
		'not_found'                  => 'Not Found',
		'no_terms'                   => 'No team member categories',
		'items_list'                 => 'Team Member Categories list',
		'items_list_navigation'      => 'Team Member Categories list navigation',
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => false,
		'show_tagcloud'              => true,
	);
	register_taxonomy( 'team_member_category', array( 'team_member' ), $args );

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