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

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. 

You can find details about the Search tab on Settings Overview page.

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. 
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.

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)
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us