WooCommerce Hide Empty Filter Options
WooCommerce hide empty filter options removes terms that have no matching products in the current selection context. In this electronics demo, choose Laptops and watch Brand terms with no laptop matches disappear. Available brands remain so shoppers can continue narrowing the catalog.
Try this: Pick Laptops and watch the result count drop while non-laptop brands disappear.
How this demo is configured
- Create a filter by Category (taxonomy product_cat). Show as Checkboxes. Limit to the terms Headphones, Laptops, Monitors, Smartphones, Smartwatches and Tablets.
- Create a filter by Brand (product attribute pa_brand). Show as Checkboxes. Show the first 6 terms, with a More toggle.
- Options with no matches: hidden.
Showing 13–24 of 36 results
-
Add to cart
Sennheiser Momentum 4
$349.00 -
Add to cart
Microsoft Surface Pro 11
$1,199.00 -
Add to cart
Lenovo Tab P12
$349.00 -
Sale
Add to cart
Sony WH-1000XM5
Original price was: $399.00.$329.00Current price is: $329.00. -
Add to cart
Bose QuietComfort Ultra
$429.00 -
Add to cart
OnePlus 12
$799.00 -
Add to cart
Nothing Phone (2a)
$349.00 -
Add to cart
iPad Air 11" (M2)
$599.00 -
Add to cart
iPad Pro 13" (M4)
$1,299.00 -
Sale
Read more
Samsung Galaxy Tab S9
Original price was: $799.00.$649.00Current price is: $649.00. -
Add to cart
iPhone 15 Pro Max
$1,199.00 -
Sale
Read more
Samsung Galaxy S24
Original price was: $799.00.$699.00Current price is: $699.00.
What counts as an empty option
The plugin checks each candidate Brand against the other active filters. Choose Laptops and the demo updates the Brand list to show which choices can still return products.
When to hide options without matches
Use this mode when shoppers should see only options that can still produce results after their other selections. It can prevent choices that lead to an empty result set.
Showing unavailable terms can also be useful if you want shoppers to know the full taxonomy. Choose hide, disable, or show based on the browsing experience you intend.
Choose the no-match behavior
- Edit the product Filter Set and locate When an option has no matching products.
- Choose Hide options with no matches to remove unavailable terms from filter lists.
- Save the set and test a category or other filter that narrows the available product pool.
- Check that selected terms remain understandable and that available choices match the products left in the catalog.