City
Taxonomy Term for Properties
if ( ! function_exists( 'city' ) ) { // Register Custom Taxonomy function city() { $labels = array( 'name' => _x( 'Cities', 'Taxonomy General Name', 'sketch2pixel' ), 'singular_name' => _x( 'City', 'Taxonomy Singular Name', 'sketch2pixel' ), 'menu_name' => __( 'City', 'sketch2pixel' ), 'all_items' => __( 'All Cities', 'sketch2pixel' ), 'parent_item' => __( 'Parent Cities', 'sketch2pixel' ), 'parent_item_colon' => __( 'Parent Cities:', 'sketch2pixel' ), 'new_item_name' => __( 'New City Name', 'sketch2pixel' ), 'add_new_item' => __( 'Add New City', 'sketch2pixel' ), 'edit_item' => __( 'Edit City', 'sketch2pixel' ), 'update_item' => __( 'Update City', 'sketch2pixel' ), 'view_item' => __( 'View City', 'sketch2pixel' ), 'separate_items_with_commas' => __( 'Separate cities with commas', 'sketch2pixel' ), 'add_or_remove_items' => __( 'Add or remove cities', 'sketch2pixel' ), 'choose_from_most_used' => __( 'Choose from the most used', 'sketch2pixel' ), 'popular_items' => __( 'Popular Cities', 'sketch2pixel' ), 'search_items' => __( 'Search Cities', 'sketch2pixel' ), 'not_found' => __( 'Not Found', 'sketch2pixel' ), 'no_terms' => __( 'No Cities', 'sketch2pixel' ), 'items_list' => __( 'Prices list', 'sketch2pixel' ), 'items_list_navigation' => __( 'Prices list navigation', 'sketch2pixel' ), ); $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( 'city', array( 'properties' ), $args ); } add_action( 'init', 'city', 0 ); }