Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

BGG – Taxonomy – Race Heats

// Register Custom Taxonomy
function add_race_heat_tax() {

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

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