Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Choir Taxonomy

// Register Custom Taxonomy
function register_choir_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Choirs', 'Taxonomy General Name', 'choir' ),
		'singular_name'              => _x( 'Choir', 'Taxonomy Singular Name', 'choir' ),
		'menu_name'                  => __( 'Choirs', 'choir' ),
		'all_items'                  => __( 'All Choirs', 'choir' ),
		'parent_item'                => __( 'Parent Choir', 'choir' ),
		'parent_item_colon'          => __( 'Parent Choir:', 'choir' ),
		'new_item_name'              => __( 'New Choir Name', 'choir' ),
		'add_new_item'               => __( 'Add New Choir', 'choir' ),
		'edit_item'                  => __( 'Edit Choir', 'choir' ),
		'update_item'                => __( 'Update Choir', 'choir' ),
		'view_item'                  => __( 'View Choir', 'choir' ),
		'separate_items_with_commas' => __( 'Separate choirs with commas', 'choir' ),
		'add_or_remove_items'        => __( 'Add or remove choirs', 'choir' ),
		'choose_from_most_used'      => __( 'Choose from the most popular choirs', 'choir' ),
		'popular_items'              => __( 'Popular Choirs', 'choir' ),
		'search_items'               => __( 'Search Choirs', 'choir' ),
		'not_found'                  => __( 'No Choir Found', 'choir' ),
		'no_terms'                   => __( 'No Choirs', 'choir' ),
		'items_list'                 => __( 'Choirs list', 'choir' ),
		'items_list_navigation'      => __( 'Choirs list navigation', 'choir' ),
	);
	$capabilities = array(
		'manage_terms'               => 'manage_categories',
		'edit_terms'                 => 'manage_categories',
		'delete_terms'               => 'manage_categories',
		'assign_terms'               => 'read',
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'capabilities'               => $capabilities,
	);
	register_taxonomy( 'choir', array( '' ), $args );

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