Back to contents

JetSmartFilters: How to Exclude/Include Items in Checkboxes, Radio, and Select Filters

Take a look at this tutorial if you want to exclude/include particular items in Checkboxes, Radio and Select filters.

JetSmartFilters plugin gives you an opportunity to specify the posts and taxonomies, which will be excluded and included in the Checkboxes, Radio, and Select filters. We are going to provide an example based on product tags.

Excluding items in filters

1 Step — Creating a new filter

Let’s go to create a new Checkboxes filter in the Smart Filters tab of WP Dashboard by clicking on the “Add New” button. Specify the name of the filter, its label, and active label.

checkboxes-filter-creation

2 Step — Customizing Filter Settings tab

Proceed to the Filter Settings tab and select the Filter Type: Checkboxes list and the Data Source: Taxonomies. Then, choose the “Product tags” option from the drop-down list in the Taxonomy field.

checkboxes list filter settings

3 Step — Excluding specific product tags

In the Exclude/Include field select the “Exclude” option and determine the particular product tags below, in the Exclude Or Include Items field.

exclude/include option in SmartFilters settings

Save the filter settings and go to the page, where you want to display the Checkboxes filter. Drop the Checkboxes Filter widget to the section and set appropriate settings in the appeared widget’s settings block. As you can see, the Health product tag is excluded now in the filter options list.

Checkboxes list widget

Including items in filters

To include the certain product tags in the filter, we should select the “Include” option in the Exclude/Include field and select the product tags from the list in the Exclude Or Include Items field.

Exclude/Include field in WordPress Dashboard

View how it looks on the page now.

Checkboxes list widget

A great job! Now you know how to exclude/include the product tags in the filter options using JetSmartFilters plugin.