Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

gis-company_countries

// Register Custom Taxonomy
function add_companycountrys_tax() {

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

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