Skip to content

Multiselect Categories and Multiselect with any Taxonomy or Product Attribute

Super Speedy Filters allows multi-select on all of our filters against any taxonomies – product categories, brands, attributes or anything. With hierarchical multiselect there are some considerations to be aware of.

Expanding the multiselect results

This is the most common type of multiselect. It means that if a user picks two items then the total results in the archive will be larger. e.g. if they select Headgear and Footwear then products from BOTH of these categories will be shown.

Enable expanded multiselect

Go to Dashboard > Appearance > Widgets and set “Allow multiple selections?” to “Yes, expand the results” for the filter in question.

WP Intense - Multiselecting Categories Expanding the Results Backend

To test, this, visit your front-end and select two categories with “Expand” active and all products within those two categories will display.

WP Intense - Multiselecting Categories Current Filters

WP Intense - Multiselecting Categories Expanding Filters URL

WP Intense - Multiselecting Categories Filter Results Breadcrumbs

 

All 5 of these products will display on the results page.

 

WP Intense - Multiselecting Categories Product Counts

 

WP Intense - Multiselecting Categories Filtering Results

Narrowing Multiselect Results

When you narrow results, you are asking our filtering engine to only show items which match BOTH (or ALL) of your selected items for this specific filter.

This is the less common option, but can be useful in certain scenarios e.g. if you have products with many colours and users need to search for items which are both blue AND yellow.

Enable Narrow Multiselect

Visit Appearance > Widgets > Shop Sidebar and locate your filter then choose Allow Multiple Selections and set it to ‘Narrow the results’.

WP Intense - Multiselecting Categories Narrow Filters Backend

WP Intense - Multiselecting Categories Standard Product Count

In this example we have 2 albums which come with frames and 2 which are in covers. From these 4 products, one of them has both a frame and a cover.

With the albums-in-frames category selected, we see two products, as expected.

WP Intense - Multiselect Categories Narrow Results 1 Filter Selected URL Structure

WP Intense - Multiselect Categories Narrow Results 1 Filter Selected

 

When we narrow further by adding the albums-in-cover then the results are narrowed down to show just the one matching product which has both a cover and a frame.

WP Intense - Multiselect Categories Narrow Results 2 Filters Selected URL Structure

WP Intense - Multiselect Categories Narrow Results 2 Filters Selected

Considerations with Multiselect on Hierarchical Taxonomies

With hierarchical taxonomies, we chose to take a path to reduce confusion for end users as much as possible.

To this end, the following rules exist:

  1. If a parent is selected, and then the user selects a child (or any descendant) of that parent, the parent becomes de-selected
  2. If a child is selected and then the user selects its parent (or any ancestor), the child becomes de-selected

You may select as many items as you wish across different parents/trees and filters will display according to what is possible to be filtered.

 

Did this article answer your question?

Leave a Reply

Your email address will not be published. Required fields are marked *


Join our Discord community and read the rules for a 20% discount coupon.