Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Regions Taxonomy ( BatesWintec Theme )

// Register Custom Taxonomy
function custom_taxonomy_region() {

	$labels = array(
		'name'                       => _x( 'Regions', 'Taxonomy General Name', 'wntc' ),
		'singular_name'              => _x( 'Region', 'Taxonomy Singular Name', 'wntc' ),
		'menu_name'                  => __( 'Region', 'wntc' ),
		'all_items'                  => __( 'All Regions', 'wntc' ),
		'parent_item'                => __( 'Parent Region', 'wntc' ),
		'parent_item_colon'          => __( 'Parent Region:', 'wntc' ),
		'new_item_name'              => __( 'New Region Name', 'wntc' ),
		'add_new_item'               => __( 'Add New Region', 'wntc' ),
		'edit_item'                  => __( 'Edit Region', 'wntc' ),
		'update_item'                => __( 'Update Region', 'wntc' ),
		'view_item'                  => __( 'View Region', 'wntc' ),
		'separate_items_with_commas' => __( 'Separate Regions with commas', 'wntc' ),
		'add_or_remove_items'        => __( 'Add or remove Regions', 'wntc' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'wntc' ),
		'popular_items'              => __( 'Frequently Used Regions', 'wntc' ),
		'search_items'               => __( 'Search Regions', 'wntc' ),
		'not_found'                  => __( 'Not Found', 'wntc' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => false,
		'rewrite'                    => false,
	);
	register_taxonomy( 'region', array( 'countries' ), $args );

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