Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Slideshows Taxonomy

Slideshows Taxonomy

// Register Custom Taxonomy
function btc_register_taxonomies() {

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

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