You can enable a multi-selection option for property categories and taxonomy fields in the search form, allowing users to select multiple categories at once. This makes the search more flexible and efficient.
Available Fields for Multi-Selection
The multi-selection option can be enabled for the following fields:
- Property Category
- Property Type
- Property City
- Property Area
These fields are managed from WP Admin > Listings. For more information on how to manage property categories and taxonomies, see how to manage Property Categories / Taxonomies.
Once the multi-selection option is enabled, users will be able to select more than one category in the dropdown.
To make searching easier, you can enable the Show Search in the Multi-Select Component option. This will add a search bar inside the multi-select dropdown, allowing users to search for specific categories more efficiently.
Adding Property Categories in WP Rentals Search Forms
For detailed instructions on how to add Property Categories to your WP Rentals search form, please refer to this article.
Field Names and Compare Settings
Here’s how the fields and their compare settings work:
Listing Main Category and Second Category:
- 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.
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.