Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Property Taxonomy

// Register Custom Taxonomy
function custom_taxonomy_property_types() {

	$labels = array(
		'name'                       => 'Property Types',
		'singular_name'              => 'Property Type',
		'menu_name'                  => 'Property Type',
		'all_items'                  => 'All Property Types',
		'parent_item'                => 'Parent Property Type',
		'parent_item_colon'          => 'Parent Property Type:',
		'new_item_name'              => 'New Property Type',
		'add_new_item'               => 'Add New Property Type',
		'edit_item'                  => 'Edit Property Type',
		'update_item'                => 'Update Property Type',
		'view_item'                  => 'View Property Type',
		'separate_items_with_commas' => 'Separate Property Types with commas',
		'add_or_remove_items'        => 'Add or remove Property Types',
		'choose_from_most_used'      => 'Choose from the most used',
		'popular_items'              => 'Popular Property Types',
		'search_items'               => 'Search Property Types',
		'not_found'                  => 'Not Found',
		'no_terms'                   => 'No Property Types',
		'items_list'                 => 'Property Types list',
		'items_list_navigation'      => 'Property Types list navigation',
	);
	$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( 'property_type', array( 'listing' ), $args );

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