Terrace Tower Property Taxonomy
// Register Custom Taxonomy
function property() {
$labels = array(
'name' => 'Properties',
'singular_name' => 'Property',
'menu_name' => 'Properties',
'all_items' => 'All Properties',
'parent_item' => 'Parent Property',
'parent_item_colon' => 'Parent Property:',
'new_item_name' => 'New Property Name',
'add_new_item' => 'Add New Property',
'edit_item' => 'Edit Property',
'update_item' => 'Update Property',
'view_item' => 'View Property',
'separate_items_with_commas' => 'Separate properties with commas',
'add_or_remove_items' => 'Add or remove properties',
'choose_from_most_used' => 'Choose from the most used',
'popular_items' => 'Popular Properties',
'search_items' => 'Search Properties',
'not_found' => 'Not Found',
'no_terms' => 'No items',
'items_list' => 'Properties list',
'items_list_navigation' => 'Properties list navigation',
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => false,
);
register_taxonomy( 'property', array( 'office_space' ), $args );
}
add_action( 'init', 'property', 0 );