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 1–12 of 36 results
-
Add to cart
Dell UltraSharp U2723QE
$579.00 -
Sale
Add to cart
LG UltraFine 27UP85
Original price was: $449.00.$379.00Current price is: $379.00. -
Add to cart
Samsung Odyssey G7 28"
$699.00 -
Read more
ASUS ProArt PA279CRV
$469.00 -
Read more
Apple Watch Series 9 (45mm)
$429.00 -
Add to cart
Apple Watch Ultra 2
$799.00 -
Sale
Add to cart
Samsung Galaxy Watch 6 Classic
Original price was: $399.00.$329.00Current price is: $329.00. -
Add to cart
Garmin Forerunner 265
$449.00 -
Add to cart
Google Pixel Watch 2
$349.00 -
Sale
Read more
Apple AirPods Pro (2nd gen)
Original price was: $249.00.$199.00Current price is: $199.00. -
Add to cart
Sennheiser Momentum 4
$349.00 -
Add to cart
Sony WF-1000XM5
$299.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.