Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

taxonomy shows

// Register Custom Taxonomy
function show_taxonomy() {

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

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