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