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 25–36 of 36 results
-
Add to cart
Samsung Galaxy S24 Ultra
$1,299.00 -
Sale
Add to cart
Google Pixel 8
Original price was: $699.00.$549.00Current price is: $549.00. -
Add to cart
Google Pixel 8a
$499.00 -
Add to cart
Microsoft Surface Laptop 7 (13.8")
$1,199.00 -
Add to cart
HP Spectre x360 14
$1,449.00 -
Sale
Read more
Acer Swift Go 14
Original price was: $849.00.$699.00Current price is: $699.00. -
Add to cart
iPhone 15
$799.00 -
Add to cart
MacBook Pro 14" (M3 Pro)
$1,999.00 -
Sale
Add to cart
Dell XPS 13 (9340)
Original price was: $1,199.00.$1,049.00Current price is: $1,049.00. -
Add to cart
Lenovo ThinkPad X1 Carbon Gen 12
$1,649.00 -
Sale
Add to cart
ASUS ROG Zephyrus G14 (2024)
Original price was: $1,599.00.$1,399.00Current price is: $1,399.00. -
Sale
Add to cart
MacBook Air 13" (M3)
Original price was: $1,099.00.$999.00Current price is: $999.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.