Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

podcast taxonomy

podcast taxonomy

if ( ! function_exists( 'podcast_custom_taxonomy' ) ) {

// Register Custom Taxonomy
function podcast_custom_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Podcast Taxonomies', 'Taxonomy General Name', 'tmm' ),
		'singular_name'              => _x( 'Podcast Taxonomy', 'Taxonomy Singular Name', 'tmm' ),
		'menu_name'                  => __( 'Podcast Taxonomy', 'tmm' ),
		'all_items'                  => __( 'All Podcasts', 'tmm' ),
		'parent_item'                => __( 'Parent Podcast', 'tmm' ),
		'parent_item_colon'          => __( 'Parent Podcast:', 'tmm' ),
		'new_item_name'              => __( 'New Podcast Name', 'tmm' ),
		'add_new_item'               => __( 'Add New Podcast', 'tmm' ),
		'edit_item'                  => __( 'Edit Podcast', 'tmm' ),
		'update_item'                => __( 'Update Podcast', 'tmm' ),
		'view_item'                  => __( 'View Podcast', 'tmm' ),
		'separate_items_with_commas' => __( 'Separate items with commas', 'tmm' ),
		'add_or_remove_items'        => __( 'Add or remove Podcasts', 'tmm' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'tmm' ),
		'popular_items'              => __( 'Popular Podcasts', 'tmm' ),
		'search_items'               => __( 'Search Podcasts', 'tmm' ),
		'not_found'                  => __( 'Not Found', 'tmm' ),
		'no_terms'                   => __( 'No Podcasts', 'tmm' ),
		'items_list'                 => __( 'Podcasts list', 'tmm' ),
		'items_list_navigation'      => __( 'Podcasts list navigation', 'tmm' ),
	);
	$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( 'podcast', array( 'podcast' ), $args );

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

}