How to Add a Filter to the Main Search Bar?
Add a filter to GeoDirectory's main search bar. You can add any Select type field to the search bar.
You need to have the Advanced Search Filters extension installed and activated to access these options.
You need to access CPT > Settings > Search (tab) section to add fields to the Advanced Search Filters. For instance, this guide uses the Places CPT. You can select fields that can be added to main search bar therein.
Adding Filters to the Main Search Bar
- 1
- Navigate to CPT > Settings > Search (tab). You will find two columns -- the left column has available fields, whereas the right column has active fields in the form.
- 2
- Click on the field that you wish to add. It will be added to the right column. You need to save each field before adding a new one.
- 3
- Place a check next to the Show in Main Search Bar option. Fields with this option can be added to the search bar. Fields that can only be added to the main filter drawer will not have this checkbox.
You can find details about the Search tab on Settings Overview page.
If added to main search bar, that particular field will not show up in the advanced search form.
List of Supported Fields for Main Search Bar
Following fields can be added to main search bar:
- Category (post_category)
- Video (video)
- Special Offers (special_offers)
- Price (price)
- Property Status (property_status)
- Property Type (property_type)
- Property Bedrooms (property_bedrooms)
- Property Bathrooms (property_bathrooms)
- Furnishing (property_furnishing)