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 25–36 of 36 results
-
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
iPhone 15 Pro Max
$1,199.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.
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.