Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Continent Taxonomy (Bates/Wintec)

// Register Custom Taxonomy
function custom_taxonomy_continent() {

	$labels = array(
		'name'                       => _x( 'Continents', 'Taxonomy General Name', 'wntc' ),
		'singular_name'              => _x( 'Continent', 'Taxonomy Singular Name', 'wntc' ),
		'menu_name'                  => __( 'Continent', 'wntc' ),
		'all_items'                  => __( 'All Continents', 'wntc' ),
		'parent_item'                => __( 'Parent Continent', 'wntc' ),
		'parent_item_colon'          => __( 'Parent Continent:', 'wntc' ),
		'new_item_name'              => __( 'New Continent Name', 'wntc' ),
		'add_new_item'               => __( 'Add New Continent', 'wntc' ),
		'edit_item'                  => __( 'Edit Continent', 'wntc' ),
		'update_item'                => __( 'Update Continent', 'wntc' ),
		'view_item'                  => __( 'View Continent', 'wntc' ),
		'separate_items_with_commas' => __( 'Separate Continents with commas', 'wntc' ),
		'add_or_remove_items'        => __( 'Add or remove Continent', 'wntc' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'wntc' ),
		'popular_items'              => __( 'Frequently Used Continent', 'wntc' ),
		'search_items'               => __( 'Search Continent', '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( 'continent', array( 'countries' ), $args );

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