WP Rentals Help WP Rentals Help

  • Client Support
  • Video Tutorials
  • WpRentals
  • WpEstate
  • API
Home / Advanced Search Options / Advanced Search & Listing Location Options

Advanced Search & Listing Location Options

11318 views

You can search by Property Location  in the following setup possibilities:

  • Location as input with theme auto-complete
  • Location as a dropdown with theme auto-complete
  • Location as input with Google Places auto-complete or Open Street Places auto-complete
  • Configuring Search Form with the location field
  • Cities and areas as independent drop-downs

Advanced Search Types and Forms that support location search are listed below:  

  • Search Type 1 – vertical with default fields. Read more here
  • Search Type 2 – horizontal with default fields. Read more here
  • Search Type 3 – horizontal with custom fields. Read more here
  • Search Type 4 – horizontal with 3 default fields (title keyword, first and 2nd category) + custom search fields . Read more here
  • Search Type 5 – Vertical search with custom fields.  Read more here
  • Half Map Search Form  – The search form available in the Search Results Half Map layout or Taxonomies / Property Categories Half Map Layout. Read more here
  • Elementor Search Form Builder – A search form builder for specific pages created with Elementor. Read more here

Search Property Location as input with theme auto-complete

Adjust Theme Autocomplete Settings

  • Navigate to Admin > WpRentals Options.
  • Go to Search > Location Field Search Settings
  • Disable the option to Use Google Places or Open Street Places for Location Field in Search?  (set NO)
  • Locate Use Dropdowns for data saved from properties in Location Search Field?
  • Choose between:
    • No (Allows users to type in cities and areas as free fields).
    • Yes (Displays pre-defined drop-down selection).
  • Click Save Changes.

Configure Submission Form for Theme Autocomplete

  • Navigate to Admin > WpRentals Options > Search > Location Field Search Settings
  • Locate Use Dropdowns for Cities and Areas in Submission Form?
  • Choose between:
    • No (Allows users to type in cities and areas as free fields).
    • Yes (Displays pre-defined drop-down selections for cities and areas).
  • Click Save Changes.

Using Theme Autocomplete in Submission Form

  • Locate Use Dropdowns for Cities and Areas in Submission Form?
  • Choose No (Allows users to type in cities and areas as free fields).

  • Go to User Dashboard > Add New Listing.
  • Fill in the mandatory fields.
  • In the City field, manually type the city name.
  • Manually enter the Neighborhood.
  • Select the Country from the drop-down list.

  • Complete the location listing details – County And State
  • Complete the remaining listing details and publish the listing.

Search Property Location as a dropdown with theme auto-complete

  • Locate Use Dropdowns for Cities and Areas in Submission Form?
  • Choose Yes (Displays pre-defined drop-down selections for cities and areas).

  • Add Cities and Areas in Wp-admin -> Listings -> Cities and Areas. More here

  • Go to User Dashboard > Add New Listing.
  • Fill in the mandatory fields.
  • Select the City from the dropdown.
  • Select Area from the dropdown
  • Select the Country from the drop-down list.

Note: Cities and Areas are independent

  • Complete the location listing details – County And State
  • Complete the remaining listing details and publish the listing.

Generating Data for Theme Autocomplete

  • The City and Area are saved as listing property categories / taxonomies and as a autocomplete date.
  • County, Country and State fields will save as autocomplete date
  • The file with autocomplete data updates itself once a day (for performance)
  • To instantly display new property details in the autocomplete location in form, manually generate the data from Map Configuration > Generate Data & Pins
  • Click Save Changes. Refresh the page. Autocomplete file is generated

Search Property Location as input with Google Places or OpenStreet Places auto-complete

Configuring Google or OpenStreet Autocomplete

Enable Autocomplete

  1. Navigate to Admin > WpRentals Options.
  2. Go to Search > Location Field Search Settings
  3. Enable the option to Use Google Places or Open Street Places for Location Field in Search?  (set YES)
  4. Disable the option Use Dropdowns for Cities and Areas in Submission Form? (Set NO)
  5. Click Save Changes.

Optional: Limit Limit Use Google Places or Open Street Places to a specific country?

2. Set the Map System

  • Go to Admin > WpRentals Options > Map Configuration > Map General Settings
  • Choose What Map System do you want to use? and Select Google Maps or OpenStreetMaps.
  • If using Google Maps:
    • Generate a Google Maps API Key. Click to see the help for how to generate a google api key.
    • Enable Google Places.

  • If using What Map System do you want to use? -> OpenStreet
  • Enable OpenStreet Places.
  • Click Save Changes.

3. Configure Submission Form Settings

  • Navigate to Admin > WpRentals Options > Search > Location Field Search Settings
  • Disable the option Use Dropdowns for Cities and Areas in Submission Form? (Set NO)

Why:  For location to be saved correctly with Google Places or Open Street Places it needs to be selected and searched with the same system.

Using Google or OpenStreet Autocomplete in Submission Form

  1. Go to User Dashboard > Add New Listing.
  2. Fill in the mandatory fields.
  3. In the City field, start typing a city name.
  4. A dropdown will appear with suggestions from Google or OpenStreet.
  5. Select a city from the dropdown.
  6. The Country field and other location details will be automatically populated based on the selected city.
  7. Complete the remaining listing details and publish the listing.

Searching for Listings Using Google or OpenStreet Autocomplete

  1. Go to the Homepage.
  2. Enter a location (e.g., New York) in the Search Field.
  3. Select the matching result from the dropdown.
  4. Click Search.
  5. The listing that matches the selected location will appear in the search results.

Configuring Search Form with the location field

The settings will apply to all search forms that support location.

The following search forms are available in the WpRentals theme, and you may use them in any setup you wish with the Location Field search:

Hero Media Search (available in 5 variations). More here

  • Type 1 – Default Search (hardcoded)
  • Type 2 – Default Search (hardcoded)
  • Type 3 – Supports Custom Fields only
  • Type 4 – Default Fields (Hardcoded) + Custom Fields
  • Type 5 – Supports Custom Fields only

Each of these variations  may show as

  • Mobile Search
  • Search Shortcode
  • Search Widget

Half Map Layout Search. More here 

  • This form is configured exclusively with Custom Fields.

Search Form Builder in Elementor. More here 

  • This form is configured exclusively with Custom Fields.

In these search forms, the location field can appear as:

  • Default Field (“Where do you want to go?”)

Custom Field (“Location”)

Elementor Search Form Builder Field – Location

Cities and areas as independent drop-downs

In the search forms that support custom fields, you can set Listing City and Property Area (as separate and independent dropdowns):

  • You can configure the names for these dropdowns in the Theme Options.
  • Ensure you use the Compare Term “like” and set the Label that will display on the advanced search field on the frontend.

  • You can set the dropdowns as classic dropdowns

  • Or you can enable multi-select from Search > Categories Multi Selection

Advanced Search Options

Related Articles

  • Enabling Multi-Selection for Property Categories | Taxonomies in the Search Form
  • How to manage the listing location with Google Places or OpenStreet Places in WpRentals
  • How to manage the listing location with theme autocomplete in WpRentals
  • How to manage the listing location with a dropdown selector in WpRentals

HELP CATEGORIES

  • 61. General
  • 102. Installation & Basic Setup
  • 93. Installation FAQ
  • 394. How Booking Works
  • 145. User dashboard pages
  • 20Advanced Search Options
  • 3Blog Post
  • 9Custom Page Templates
  • 18Elementor Compatibility
  • 13Email Notifications
  • 19FAQ
  • 10Menu Options
  • 26Multi-Languages - 3rd party
  • 9Owner
  • 25Property / Listing
  • 21Shortcodes
  • 11Submit Form
  • 4Supported Maps
  • 93Technical how to
  • 5Third Party plugins
  • 3Translation
  • 13Widgets
  • 2WooCommerce Payments
  • 13WP Rentals Payment
  • 77WP Rentals Theme Options

Join Us On

Powered by WP Estate - All Rights Reserved
  • Client Support
  • Video Tutorials
  • WpRentals
  • WpEstate
  • API