WooCommerce Include and Exclude Filter Terms
A WooCommerce include/exclude filter controls which taxonomy terms appear as shopper choices. This electronics demo hides Apple, Samsung, and Acer from Brand, leaving the remaining brands available. That keeps the Brand filter focused on the other brands available in the catalog.
Try this: Pick Google; Apple, Samsung and Acer are no longer offered in the brand list.
How this demo is configured
- Create a filter by Brand (product attribute pa_brand). Show as Checkboxes. Exclude the terms Acer, Apple and Samsung. Show the first 6 terms, with a More toggle.
Showing 13–24 of 36 results
-
Sale
Add to cart
JBL Tune 770NC
Original price was: $129.00.$99.00Current price is: $99.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
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
OnePlus 12
$799.00 -
Add to cart
Nothing Phone (2a)
$349.00 -
Add to cart
iPad Air 11" (M2)
$599.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.
Include terms or hide selected terms
The demo uses Exclude terms on its Brand taxonomy to hide Apple, Samsung, and Acer from the filter options. Shoppers can then choose from the remaining brands in the catalog.
When to curate taxonomy choices
Curate a taxonomy list when shoppers need only the terms relevant to that filter context. Hide legacy terms or keep a Brand list focused on a product line while preserving the full taxonomy in WordPress.
Configure term inclusion or exclusion
- Edit the product Filter Set and open the taxonomy filter you want to curate.
- Open Advanced (optional) and enter the desired slugs in Include terms (slugs, comma-separated) or Exclude terms (slugs, comma-separated).
- Verify the taxonomy under Choose taxonomy and confirm that the slugs belong to it.
- Save the set and check the displayed choices. Select an available term to verify normal filtering still works.