Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

FD EP

// Register Custom Taxonomy
function fdep_tax() {

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

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