Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Video Categories

// Register Custom Taxonomy
function taxonomy_videos() {

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

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