You can search by Property Location in the following setup possibilities:
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
- Navigate to Admin > WpRentals Options.
- Go to Search > Location Field Search Settings
- Enable the option to Use Google Places or Open Street Places for Location Field in Search? (set YES)
- Disable the option Use Dropdowns for Cities and Areas in Submission Form? (Set NO)
- 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
- Go to User Dashboard > Add New Listing.
- Fill in the mandatory fields.
- In the City field, start typing a city name.
- A dropdown will appear with suggestions from Google or OpenStreet.
- Select a city from the dropdown.
- The Country field and other location details will be automatically populated based on the selected city.
- Complete the remaining listing details and publish the listing.
Searching for Listings Using Google or OpenStreet Autocomplete
- Go to the Homepage.
- Enter a location (e.g., New York) in the Search Field.
- Select the matching result from the dropdown.
- Click Search.
- 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