Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

PACIFIC PROPERTY REGION

// Register Custom Taxonomy
function ppg_region_taxonomy() {

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

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