WooCommerce AND Logic Filter for Multiple Terms
A WooCommerce AND logic filter requires a product to match every selected term in that filter. This fashion demo applies AND to the Occasion taxonomy. Select Everyday and Work together to see only products assigned both occasion terms. The result count makes the intersection visible.
Try this: Pick Everyday and Work; only pieces tagged both remain.
How this demo is configured
- Create a filter by Occasion (product attribute pa_occasion). Show as Checkboxes. Match all selected options.
Showing 37–38 of 38 results
-
Sale
Add to cart
Uniqlo Smart Ankle Pants
Original price was: $39.90.$29.90Current price is: $29.90. -
Sale
Add to cart
Uniqlo U Blocktech Parka
Original price was: $79.90.$59.90Current price is: $59.90.
How AND logic changes a multi-select
With AND logic, a product appears in a combined Everyday and Work selection only when it carries both Occasion terms. The demo uses the Occasion filter to make that rule visible.
OR logic includes products matching either selected term. Pick Everyday and Work together, then compare the result with the checkbox demo that uses the default OR behavior.
When shoppers need all chosen terms
Use AND when the shopper is expressing conditions that must all be true. A product may need multiple tags, attributes, or categories to match the combination.
Check that the catalog assigns multiple terms to the same products. Tags for use cases, occasions, or material combinations often support this pattern.
Set a filter to AND logic
- Open a product Filter Set and add a taxonomy filter with a multi-select view.
- Set Filter name (shown to shoppers) and a unique URL keyword, then choose the taxonomy under Choose taxonomy.
- Under How shoppers choose, select Checklist (multi-select).
- Under Allow multiple selections?, choose No, one choice (AND). Despite the label, the query requires every selected term when multiple terms are checked.
- Save and test a pair of terms known to share products.