Display Only Relevant Filter Options for Current Category or Archive Page

Written by the Divi Engine Documentation Team

Introduction

In this use case, we will show you how to configure Divi Ajax Filter to display only specific terms or filter options related to the current category or archive page being viewed. This can be useful if you want to provide users with a more focused and relevant browsing experience.

Extra Scenario 1 DEMO ⮕ https://ajax-filter-docs.diviengine.com/product-category/clothing/accessories/

Steps to Display Only Relevant Filter Options for Current Category or Archive Page

  1. Access the filter module settings: Go to your page, find the filter module, and edit its settings.
  2. Set the update method: Ensure the filter method update method is set to "on change".
  3. Set "Update filter count and empty options for clicked item" to "NO" (optional): This is the default for this setting, but just double check.
  4. Configure empty options for each field: For each field you want to apply this behavior, access the field settings and follow these steps:
    • Navigate to Empty Options: Locate the "Empty Options" setting within the field settings.
    • Set "Display Terms only Available to the Current Category or Archive Page? (archive/category pages only)" to "YES": This ensures that only relevant filter options will be displayed for the current category or archive page being viewed.
  5. Display filter count (optional): As a convenience, if you have a checkbox radio field, make sure to display the filter count under the Checkbox / Radio tab. This helps users know how many options are available. 

By following these steps, you will successfully configure the Divi Ajax Filter plugin to display only relevant filter options for the current category or archive page. To explore more use cases and learn how to utilize the empty filter options in Divi Ajax Filter, check out other videos on our channel. 

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.