WooCommerce Product Attribute Filter for Size

A WooCommerce product attribute filter narrows products by a value such as size, color, or material. This fashion demo uses the Size attribute. Choose Size S to find products assigned that term, then compare the result with the separate variation-aware demo.

Try this: Choose Size S to see only pieces available in small.

How this demo is configured

  • Create a filter by Size (product attribute pa_size). Show as Checkboxes. Sort terms by Term ID (ascending).
Filters
Size
Size

Showing 13–24 of 38 results

What an attribute filter matches

The filter uses the product taxonomy, in this case Size. When a shopper selects Size S, the query returns products assigned that term. Choose a checklist, radio control, or dropdown to fit the number of options.

When product attributes are useful

Use attributes for product characteristics shoppers compare across items. Size fits apparel; color and material help shoppers compare clothing and accessories. Keep each global attribute name consistent across your catalog.

Add a size attribute filter

  1. Go to Filter Sets → Add New and select Products for Content to filter.
  2. Add a filter row named Size and set a unique URL keyword.
  3. Choose Category/Attribute (taxonomy) under What are you filtering?, then select the size taxonomy under Choose taxonomy.
  4. Pick a control under How shoppers choose and save the set.
  5. Test one known size term and verify the result list against products assigned that attribute.

Frequently asked questions

Does this page check each variation?

No. It queries Size terms assigned to products; the related demo checks child variation attributes.

Will Size S in a product title match this filter?

Only products with the Size S term assigned to the product taxonomy will match.