Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

SFF Episode Taxonomy

if ( ! function_exists( 'show_taxonomy' ) ) {

// Register Custom Taxonomy
function show_taxonomy() {

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

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

}