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 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 -
Add to cart
Sennheiser Momentum 4
$349.00 -
Add to cart
Sony WF-1000XM5
$299.00 -
Sale
Add to cart
JBL Tune 770NC
Original price was: $129.00.$99.00Current price is: $99.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.