Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

pww Disciplines

// Register Custom Taxonomy
function work_categories() {

	$labels = array(
		'name'                       => 'Disciplines',
		'singular_name'              => 'Discipline',
		'menu_name'                  => 'Discipline',
		'all_items'                  => 'All Disciplines',
		'parent_item'                => 'Discipline',
		'parent_item_colon'          => 'Discipline:',
		'new_item_name'              => 'New Discipline',
		'add_new_item'               => 'Add New Discipline',
		'edit_item'                  => 'Edit Discipline',
		'update_item'                => 'Update Discipline',
		'view_item'                  => 'View Discipline',
		'separate_items_with_commas' => 'Separate items with commas',
		'add_or_remove_items'        => 'Add or remove items',
		'choose_from_most_used'      => 'Choose from the most used',
		'popular_items'              => 'Popular Items',
		'search_items'               => 'Search',
		'not_found'                  => 'Not Found',
		'no_terms'                   => 'No items',
		'items_list'                 => 'Items list',
		'items_list_navigation'      => 'Items list navigation',
	);
	$rewrite = array(
		'slug'                       => 'work',
		'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,
	);
	register_taxonomy( 'work_categories', array( 'work' ), $args );

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