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 13–24 of 38 results
-
Select options This product has multiple variants. The options may be chosen on the product page
Cove Merino Crew
Price range: $109.00 through $119.00 -
Add to cart
Everlane Cashmere Crew
$168.00 -
Add to cart
Everlane Linen Camp Shirt
$88.00 -
Sale
Add to cart
Everlane Silk Slip Dress
Original price was: $198.00.$148.00Current price is: $148.00. -
Add to cart
Everlane The Day Market Tote
$165.00 -
Select options This product has multiple variants. The options may be chosen on the product page
Field Twill Shirt
Price range: $89.00 through $104.00 -
Select options This product has multiple variants. The options may be chosen on the product page
Harbor Oxford Shirt
Price range: $79.00 through $94.00 - Add to cart
-
Select options This product has multiple variants. The options may be chosen on the product page
Linen Column Dress
Price range: $139.00 through $149.00 -
Select options This product has multiple variants. The options may be chosen on the product page
Meadow Wrap Dress
Price range: $129.00 through $139.00 -
Add to cart
Muji Linen Blend Dress
$69.00 -
Add to cart
Muji Yak Wool Cardigan
$89.00
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.