Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Genus

// Register Custom Taxonomy
function genus_taxonomy() {

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

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