How to set up WooCommerce product categories, tags and attributes
A clear store structure helps customers find products fast and helps Google understand your site. This guide explains how to set up WooCommerce product categories, tags and attributes, when to use each one, and how to keep them tidy as your catalogue grows.
Categories, tags or attributes?
| Type | Use it for | Example |
|---|---|---|
| Category | The main sections of your store, can have sub-categories | Men → Shoes → Sneakers |
| Tag | Loose keywords that cut across categories | summer, gift, new-arrival |
| Attribute | Product properties customers filter by, and the basis of variations | Size, Colour, Material |
Step 1: Create categories
- Go to Products → Categories.
- Enter a Name. The Slug is the URL part; use short English words with hyphens, for example
mens-shoes, even if the name is Arabic. This keeps links clean. - Choose a Parent category to create a sub-category, or leave "None" for a main category.
- Add a short Description (many themes show it at the top of the category page, which helps SEO).
- Choose a Display type and upload a Thumbnail if your theme shows category images.
- Click Add new category.
WooCommerce always has a default category called "Uncategorized". You cannot delete it, but you can rename it (for example "Other") and change its slug. Drag and drop categories in the list to change their order on the shop page.
Step 2: Create tags
- Go to Products → Tags.
- Add a name and slug, and click Add new tag.
You can also type tags directly in the product editor. Keep the list short: dozens of tags with one product each create thin pages that add nothing.
Step 3: Create global attributes
- Go to Products → Attributes.
- Enter a Name (for example "Size") and a slug (
size). - Tick Enable archives only if you want a page per value (for example all "Red" products).
- Choose the Default sort order (custom ordering lets you put S, M, L, XL in the right order).
- Click Add attribute, then Configure terms and add each value (S, M, L, XL).
Step 4: Assign them to products
- Edit a product (see How to add a new product in WooCommerce (step by step)).
- In the right sidebar, tick the Product categories and add Product tags.
- In Product data → Attributes, choose your global attribute, click Add, select the values that apply, and tick Visible on the product page so they appear in the "Additional information" tab.
- If the product comes in sizes or colours with different prices or stock, the attribute is also used to create variations (the option Used for variations appears for variable products).
- Update the product.
To assign categories to many products at once, select them in the product list and use Bulk actions → Edit, or use a CSV import: How to add and edit WooCommerce products in bulk (CSV / Excel).
Step 5: Add them to the menu and filters
- Add main categories to your header menu from Appearance → Menus or the Site Editor.
- Add filter blocks or widgets (for example "Filter by attribute" or "Product filters", depending on your WooCommerce version and theme) to the shop sidebar, so customers can filter by size or colour.
Common problems
- Category page shows 404: go to Settings → Permalinks and click Save to refresh the rules.
- Arabic slugs look like
%d8%a7...in links: edit the slug and use English words. - Attribute filter shows no results: the products use "custom product attributes" typed inside the product instead of the global attribute. Recreate them using the global attribute.
Frequently asked questions
Can a product be in more than one category?
Yes, but use it with care. One main category per product is easier to manage and avoids duplicate-looking pages.
Does deleting a category delete its products?
No. The products stay; if they had no other category they move to the default category.