Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Country Origins for use with Fellows

// Register Custom Taxonomy
function country_origin() {

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

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