Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

radio show taxonomy

display episodes tagged with ***SHOW*** under genre. This defines show_taxonomy

if ( ! function_exists( 'show_taxonomy' ) ) {

// Register Custom Taxonomy
function show_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Shows', 'Taxonomy General Name', 'cudazi' ),
		'singular_name'              => _x( 'Show', 'Taxonomy Singular Name', 'cudazi' ),
		'menu_name'                  => __( 'Shows', 'cudazi' ),
		'all_items'                  => __( 'All Shows', 'cudazi' ),
		'parent_item'                => __( 'Genre', 'cudazi' ),
		'parent_item_colon'          => __( 'Genre :', 'cudazi' ),
		'new_item_name'              => __( 'New Show Name', 'cudazi' ),
		'add_new_item'               => __( 'Add New Show', 'cudazi' ),
		'edit_item'                  => __( 'Edit Show', 'cudazi' ),
		'update_item'                => __( 'Update Show', 'cudazi' ),
		'view_item'                  => __( 'View Show', 'cudazi' ),
		'separate_items_with_commas' => __( 'Separate Shows with commas', 'cudazi' ),
		'add_or_remove_items'        => __( 'Add or Remove Shows', 'cudazi' ),
		'choose_from_most_used'      => __( 'Choose From Most Popular Shows', 'cudazi' ),
		'popular_items'              => __( 'Popular Shows', 'cudazi' ),
		'search_items'               => __( 'Search Shows', 'cudazi' ),
		'not_found'                  => __( 'Show Not Found', 'cudazi' ),
	);
	$rewrite = array(
		'slug'                       => 'show',
		'with_front'                 => false,
		'hierarchical'               => true,
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'query_var'                  => 'show',
		'rewrite'                    => $rewrite,
	);
	register_taxonomy( 'show', array( 'episodes' ), $args );

}

// Hook into the 'init' action
add_action( 'init', 'show_taxonomy', 0 );

}