1. Home
  2. Docs
  3. Advanced Search & Filter
  4. Advanced Search/Filter
  5. Search Page

Search Page

Displaying Advanced Filter in the Search Form Page

You can display advanced filter in the search page in one of the following two ways.

A) Using shortcode attributes: the shortcode for displaying Directorist search listing has a number of additional attributes. You can use some of those attributes to control the advanced filter in the search form. The description of some of the attributes related to the filters is given below. You can find the list of all attributes here.

  1. more_filters_button: You can hide/show the advanced filter (‘more filters’) button by this attribute. Options available: yes | no. The default value is yes. Example usage: [directorist_search_listing more_filters_button=’yes’ ].
  2. more_filters_text: You can change the ‘more filters’ text by this attribute. The default value is More Filters. Example usage: [directorist_search_listing more_filters_text=’More Filters’].
  3. price_min_max_field: You can show/hide price minimum and maximum fields by this attribute. Available options: yes | no. The default value is ‘yes’. Example usage: [directorist_search_listing price_min_max_field=’yes’].
  4. price_range_field: You can show/hide price range field by this attribute. Available options: yes | no. The default value is ‘no’. Example usage: [directorist_search_listing price_range_field=’no’].
  5. rating_field: You can show/hide the rating_field field by this attribute. Available options: yes | no. The default value is ‘yes’. Example usage: [directorist_search_listing rating_field=’yes’].
  6. tag_field: You can show/hide the tag field by this attribute. Available options: yes | no. The default value is ‘yes’. Example usage: [directorist_search_listing tag_field=’yes’].
  7. open_now_field: You can show/hide open now field by this attribute. Available options: yes | no. The default value is ‘no’. Example usage: [directorist_search_listing open_now_field=’no’].
  8. custom_fields: You can show/hide open custom fields by this attribute. Available options: yes | no. The default value is ‘yes’. Example usage: [directorist_search_listing custom_fields=’yes’].
  9. website_field: You can show/hide the website field by this attribute. Available options: yes | no. The default value is ‘no’. Example usage: [directorist_search_listing website_field=’no’].
  10. email_field: You can show/hide the email field by this attribute. Available options: yes | no. The default value is ‘no’. Example usage: [directorist_search_listing email_field=’no’].
  11. phone_field: You can show/hide the phone field by this attribute. Available options: yes | no. The default value is ‘no’. Example usage: [directorist_search_listing phone_field=’no’].
  12. address_field: You can show/hide the address field by this attribute. Available options: yes | no. The default value is ‘no’. Example usage: [directorist_search_listing address_field=’no’].
  13. zip_code_field: You can show/hide the zip/postcode field by this attribute. Available options: yes | no. The default value is ‘no’. Example usage: [directorist_search_listing zip_code_field=’no’].
  14. reset_filters_button: You can show/hide the reset filters button by this attribute. Available options: yes | no. The default value is ‘yes’. Example usage: [directorist_search_listing reset_filters_button=’yes’].
  15. apply_filters_button: You can show/hide the apply filters button by this attribute. Available options: yes | no. The default value is ‘yes’. Example usage: [directorist_search_listing apply_filters_button=’yes’].
  16. reset_filters_text: You can modify reset filters text by these attributes. The default value is Reset Filters. Example usage: [directorist_search_listing reset_filters_text=’Reset Filters’].
  17. apply_filters_text: You can modify apply filters text by these attributes. The default value is ‘Apply Filters’. Example usage: [directorist_search_listing apply_filters_text=’Apply Filters’].

 

B) From Directorist Settings Page: You can display or hide the advanced search filters in the Directorist search page from the Directorist Search Settings Page. Visit Dashboard > Directorist listings > Directorist Settings > Search Listings page. In the SEARCH FORM SETTINGS section, set the Display More Filters option to ‘YES‘ to display the advanced filter in the search page. There are also some filter-related options available on this page. You can use these options to customize the filters however you like. You can control which fields to show/hide in the filter form using these options. The description of them is given below.

Customizing Search Filters from the Search Settings Page

Customizing Search Filters from the Search Settings Page

  1. Open Filter Fields: You can set how you would like to display the filter form fields when a user clicks on the more filter button. Available options: Sliding | Overlapping. Select the option you like and see the change in the front end. The default is Sliding.
  2. Filter Fields: Check the fields you would like to in the search filter in this option. Some field may need an additional add-on to work properly. For example, the Open Now filter filed needs Directorist Business Hour extension to work properly.
  3. Filters Button: Check the Reset and Apply button if you want to show them in the filter form. Uncheck them to hide them.
  4. More Filters Button Text: You can modify the text of the ‘More Filters’ button using this field. Enter any text you want to show in the ‘More Filter’ button in this text field. The default is ‘More Filters’.
  5. Reset Filters Button Text: You can modify the text of the ‘Reset filters’ button using this field. Enter any text you want to show in the ‘Reset Filter’ button in this text field. The default is ‘Reset Filters’.
  6. Apply Filters Button Text: You can modify the text of the ‘Apply Filters’ button using this field. Enter any text you want to show in the ‘Apply Filters’ button in this text field. The default is ‘Apply Filters’.

You can also check other settings on this page to customize look and feel of the Directorist search page.

Filter in the Search Page

Sample Filter in the Search Page