Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

tm_staff_type

if ( ! function_exists( 'tm_staff_type' ) ) {

// Register Custom Taxonomy
function tm_staff_type() {

	$labels = array(
		'name'                       => 'Staff Types',
		'singular_name'              => 'Staff Type',
		'menu_name'                  => 'Staff Type',
		'all_items'                  => 'All Staff Types',
		'parent_item'                => 'Parent Staff Type',
		'parent_item_colon'          => 'Parent Staff Type:',
		'new_item_name'              => 'New Staff Type',
		'add_new_item'               => 'Add New Staff Type',
		'edit_item'                  => 'Edit Staff Type',
		'update_item'                => 'Update Staff Type',
		'view_item'                  => 'View Staff Type',
		'separate_items_with_commas' => 'Separate Staff Type with commas',
		'add_or_remove_items'        => 'Add or remove Staff Type',
		'choose_from_most_used'      => 'Choose from the most used',
		'popular_items'              => 'Popular Staff Type',
		'search_items'               => 'Search Staff Type',
		'not_found'                  => 'Not Found',
		'no_terms'                   => 'No Staff Type',
		'items_list'                 => 'Staff Type list',
		'items_list_navigation'      => 'Staff Type list navigation',
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
	);
	register_taxonomy( 'tm-staff-types', array( 'tm_staff' ), $args );

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

}