Eren Labs JOURNAL TR
Product Catalog

WooCommerce Product Attributes: Set Them Up Once, Use Them Everywhere

Attributes describe what a product is (colour, size, material) and drive variations, filters and the Additional information tab. How to create them properly, choose the term order, decide on archives and visibility, and avoid the naming traps.

In this article12 sections

WooCommerce product attributes describe what a product is, such as colour, size or material. Create them once under Products → Attributes, add their values (called terms), and pick them on each product’s Attributes tab. The same attributes then fill the Additional information table on the product page, power shop filters, and are what variations are built from. This guide covers setting them up properly, checked against WooCommerce 11.3.1: global or custom, term order, archives, visibility, filters, and the naming limits that catch people out.

What product attributes do#

Illustration: one set of attributes feeding the specification table, shop filters, variations and attribute archive pages
One attribute, four jobs: the Additional information table, shop filters, variations and, if enabled, its own archive pages.

An attribute does up to four jobs, depending on how you set it:

  • Specification table. Attributes marked visible appear in the product’s Additional information tab, after Weight and Dimensions.
  • Shop filters. Global attributes can be used in filter blocks or widgets, so shoppers narrow the shop to “blue, size M”.
  • Variations. Ticking “Used for variations” lets a variable product sell each combination with its own price, stock and SKU.
  • Archive pages. If enabled, each term gets a page listing its products, like a category.

If you are unsure how attributes and variations relate, our guide to WooCommerce attributes vs variations explains it from the start.

Global or custom attributes#

WooCommerce has two kinds. Global attributes are created under Products → Attributes and shared by every product; their terms are stored once and reused. Custom attributes are typed on one product’s Attributes tab and exist only there.

GlobalCustom
Reused across productsYesNo, typed each time
Shop filtersYesNo
Archive pagesOptionalNo
Term order you controlYesThe order you type them
Spelling stays consistentYesOnly if you’re careful

Use global attributes for anything that repeats across products: colour, size, material, brand-like characteristics. Use custom ones for genuinely one-off details, such as “Engraving: up to 20 letters” on a single product. A shop with “Blue”, “blue” and “Navy blue” typed on different products has three colours as far as filters are concerned.

How to create a global attribute#

  1. Go to Products → Attributes.
  2. Enter a Name, such as Colour. The Slug is filled in from it; keep it short and plain.
  3. Decide on Enable archives? (see below). Leave it off if unsure.
  4. Choose the Default sort order for its terms (see below).
  5. Click Add attribute, then Configure terms next to it and add each value: Red, Blue, Green.

Then, on each product, open Product data → Attributes, add the attribute, select the terms that apply, and tick Visible on the product page if it should appear in the Additional information table. For a variable product, also tick Used for variations.

Term order: the setting that fixes “L, M, S, XL”#

Each global attribute has a Default sort order with four choices:

  • Custom ordering: the order you drag terms into on the Configure terms screen. The right choice for sizes: S, M, L, XL.
  • Name: alphabetical. Fine for colours or materials; wrong for sizes, which come out L, M, S, XL.
  • Name (numeric): sorts numbers as numbers, so shoe sizes go 38, 39, 40, 41 and 100 ml comes after 50 ml.
  • Term ID: the order the terms were created in.

This order is used in dropdowns on the product page, in filters and in the Additional information table, so it is worth getting right before you have hundreds of products.

Archives: should each colour get its own page?#

Enable archives? gives every term a public page listing its products, at an address like /colour/red/. That can be valuable when people search for it (“red linen dress”) and the page has enough products to be useful. It can also create hundreds of thin pages that compete with your categories. Our guide to when a colour earns its own page works through the decision. Turning archives on doesn’t add links to them anywhere; you add those to menus or content yourself.

The Additional information tab#

The product page’s specification table is built by WooCommerce from three things in a fixed order: Weight and Dimensions (when the product has them), then every attribute ticked Visible on the product page. Attributes used only for variations and not ticked visible don’t appear there, which is why a T-shirt can show Material but not Size. If the tab is missing altogether, the product has no weight, no dimensions and no visible attributes.

Use this table for the facts customers compare: material, fit, care instructions, compatibility. It is quicker to scan than a paragraph, and it is consistent across products because the terms are shared.

Filtering the shop by attribute#

Global attributes can be used to filter the shop: in block themes with the product filter blocks on the shop or category templates, in classic themes with the filter widgets in a sidebar. Only global attributes can be filtered, which is one more reason not to type colours as custom attributes. WooCommerce keeps a lookup table of product attributes to make these filters fast; its settings are under WooCommerce → Settings → Products → Advanced, and on large catalogues it is worth leaving on.

Naming rules and traps#

  • Short slugs. WooCommerce stores each global attribute as a taxonomy named pa_ plus its slug, and WordPress limits taxonomy names to 32 bytes, so the slug can be at most 29 bytes. Letters outside basic Latin take two to four bytes each, so a slug in Cyrillic or Chinese hits the limit much sooner.
  • Reserved words. Some names are reserved by WordPress (for example “type”, “name” or “attachment”) and are rejected as attribute slugs. Use “product-type” rather than “type”.
  • Changing a slug later changes the attribute’s taxonomy, archive addresses and URL parameters such as attribute_pa_colour, which links to specific variations rely on. Pick slugs carefully the first time; our guide to WooCommerce default variations shows where those parameters are used.
  • One attribute per idea. Don’t create “T-shirt size” and “Hoodie size” with the same values; one Size attribute serves both and filters across both.

Attributes in a product CSV#

WooCommerce’s product export and import handle attributes as groups of columns, numbered per attribute: Attribute 1 name, Attribute 1 value(s), Attribute 1 visible and Attribute 1 global, then Attribute 2 and so on. Values are separated by commas, visible and global take 1 or 0, and variable products may also have an Attribute 1 default column. Exporting one finished product first is the quickest way to see the exact format your import needs; the free WooCommerce product CSV template starts you off with the right headers.

Watch the global column. With it set to 1, the import attaches the values to the global attribute of that name and creates missing terms; set to 0, it creates custom attributes, product by product, and the filters won’t see them. A single wrong spelling in the value column creates a new term, so check the term list after any import.

Cleaning up messy attributes#

Most shops that have been running a while have some mess: duplicate terms (“Grey” and “Gray”), attributes created twice, colours typed as custom attributes on older products. A cleanup in this order keeps the damage small:

  1. List what exists. Products → Attributes shows each global attribute with its terms; export products to see custom attributes.
  2. Decide the final set. One attribute per idea, one spelling per term, in the order customers expect.
  3. Move products before deleting terms. Deleting a term removes it from every product that used it, and variations built on it lose their match. Re-assign products to the term you keep first.
  4. Check variable products afterwards. A variation whose attribute value no longer exists can’t be selected, and shoppers see “no products matched your selection”. Our guide to variations not showing covers how to spot them.

Do it on a staging copy if you can, and in any case after a full product export, so there is a way back.

From attributes to variations with Quick Variable Products#

Once Colour and Size exist as global attributes, the slow part is turning them into variations: generating every combination, then opening each one for price, SKU and stock. Quick Variable Products does that on one screen. The free version on WordPress.org lists your global attributes, lets you create a new attribute or new terms without leaving the screen, generates every combination in one click, and gives each row its own price, SKU and stock, with a SKU generator and “set all quantities” for speed.

Quick Variable Products: a colour by size grid of nine variations with stock, generated SKUs and prices
Quick Variable Products (free): global Colour and Size attributes turned into nine variations, each with stock, SKU and price.

The result is an ordinary WooCommerce variable product using your global attributes, so filters, the Additional information table and archives all work as described above. Our walkthrough of creating a variable product shows the whole process, and our guide to variation SKUs suggests a SKU scheme built from the attribute values.

WooCommerce product attributes: frequently asked questions#


What are product attributes in WooCommerce?

Characteristics such as colour, size or material. Global attributes are created under Products, Attributes and shared by all products; custom attributes are typed on a single product. Attributes fill the Additional information tab, power shop filters and are the basis of variations.


How do I change the order of attribute terms?

Edit the attribute under Products, Attributes and set Default sort order. Custom ordering uses the order you drag the terms into on the Configure terms screen, Name sorts alphabetically, Name (numeric) sorts numbers properly, and Term ID uses creation order.


Why are attributes not showing on my product page?

Only attributes ticked Visible on the product page appear in the Additional information tab, after weight and dimensions. Attributes used only for variations and not ticked visible are left out. If the product has no weight, dimensions or visible attributes, the tab doesn’t appear.


Should I enable archives for attributes?

Only if term pages would be genuinely useful and searched for, with enough products on each. Archives give every term a public page, which can help for searches like a colour plus product type, but can also create many thin pages that compete with categories.


Is there a limit on attribute name length?

The slug, not the display name, is limited. WooCommerce stores a global attribute as a taxonomy named pa_ plus the slug, and WordPress allows 32 bytes, so the slug can use 29 bytes. Non-Latin letters take two to four bytes each, so they reach the limit sooner.


More in Product Catalog

Keep exploring

All articles
Before you go Let Quick Variable Products do this in WooCommerce

Create product variations, stock, SKUs and prices on one screen. Pro adds bulk editing of existing variations with a preview and undo.

Explore Quick Variable Products Get the free version

Free version on WordPress.org · Pro from $59/year