Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Slash9.tv Artists Taxonomy

// Register Custom Taxonomy
function slash9_mu_costum_taxonomies() {

	$labels = array(
		'name'                       => _x( 'Artists', 'Taxonomy General Name', 'slash9' ),
		'singular_name'              => _x( 'Artist', 'Taxonomy Singular Name', 'slash9' ),
		'menu_name'                  => __( 'Artists', 'slash9' ),
		'all_items'                  => __( 'All Artists', 'slash9' ),
		'parent_item'                => __( 'Parent Artist', 'slash9' ),
		'parent_item_colon'          => __( 'Parent Artist:', 'slash9' ),
		'new_item_name'              => __( 'New Artist Name', 'slash9' ),
		'add_new_item'               => __( 'Add New Artist', 'slash9' ),
		'edit_item'                  => __( 'Edit Artist', 'slash9' ),
		'update_item'                => __( 'Update Artist', 'slash9' ),
		'separate_items_with_commas' => __( 'Separate artists with commas', 'slash9' ),
		'search_items'               => __( 'Search Artists', 'slash9' ),
		'add_or_remove_items'        => __( 'Add or remove artists', 'slash9' ),
		'choose_from_most_used'      => __( 'Choose from the most used artists', 'slash9' ),
		'not_found'                  => __( 'Not Found', 'slash9' ),
	);
	$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( 'artists', array( 'lb_livestream', 'vi_archive' ), $args );

}

// Hook into the 'init' action
add_action( 'init', 'slash9_mu_costum_taxonomies', 0 );