Product attribute loop
Field loops do not query to the DB, they receive a prepopulated items
field.
This Loop is returned by a product's attributes
field, it cannot be called directly in a template (can be manually constructed through code, though).
For loop type woo_product_attribute
, here are the available query arguments and fields.
Query arguments
Fields
-
id
- Attribute id
-
label
- Attribute label
-
name
- Attribute name
-
options
- Attribute options ids, array of values(use as list loop)
-
slugs
- Attribute options slugs, array of values(use as list loop)
-
variation
- Attribute used for product variations
-
visible
- Attribute visible on the product page