Eren Labs JOURNAL TR
Product Catalog

WooCommerce Subcategories: Create, Display and Fix Them

Subcategories are how a large catalogue stays browsable. How to create them, show them on category pages, display them anywhere with a shortcode, why they sometimes don't appear, and how to design a structure shoppers understand.

In this article16 sections

WooCommerce subcategories are product categories with a parent. Create one under Products → Categories by choosing a Parent category. To show them on the parent’s page, set the category display option to show subcategories (or subcategories and products), either store-wide in the Customizer or per category with the Display type field. This guide covers creating, displaying and troubleshooting subcategories, plus how to design a tree shoppers can follow.

How to create WooCommerce subcategories#

  1. Go to Products → Categories.
  2. Enter a name and, if you like, a slug.
  3. Choose the Parent category.
  4. Add a thumbnail image and a short description.
  5. Click Add new category, then assign products.

The address of a subcategory page includes its parent, such as /product-category/shoes/boots/. You can move an existing category under another by editing it and changing its parent, but the address changes with it, so redirect old links as described in our guide to changing category structure. WooCommerce’s category documentation covers the other fields.

Showing subcategories on category pages#

Illustration: a category tree with a parent category, subcategories and products
Two levels below the top are usually enough; deeper trees hide products.

By default many shops show only products on category pages. In the Customizer under WooCommerce → Product Catalog, the category display option offers: show products, show subcategories, or show subcategories and products. Each category also has its own Display type field that overrides the store-wide choice. A common setup is “subcategories” for top-level categories, which act as signposts, and “products” for the lowest level. Block themes may use templates and product collection blocks instead, so check your theme’s category template.

When searching or filtering, or from page two onwards, WooCommerce shows products rather than subcategory tiles. That is expected. Our guide to showing categories on the shop page covers the similar setting for the main shop.

The subcategory shortcode#

To show subcategories anywhere, such as a landing page, use the product categories shortcode with the parent category’s ID:

[product_categories parent="24" columns="4"]
OptionWhat it does
parentID of the parent; 0 shows top-level categories
limitHow many categories to show
orderby / orderSorting; name is the default
columnsTiles per row
hide_emptyHide categories without products (default on)
idsShow specific categories only

Find a category ID by opening it in the admin and reading the tag_ID number in the address. The shortcode takes a fixed ID, so it can’t follow “the current category” on its own; that needs your theme, a block that supports it or custom code.

Why subcategories don’t show#

  • Display set to products only, store-wide or on the category itself.
  • Empty subcategories: a subcategory with no visible products is usually hidden.
  • Out of stock hiding: if all products are sold out and hidden, the category can look empty.
  • Theme templates that skip the category loop.
  • Wrong parent: the category isn’t actually a child of the page you’re viewing.
  • Caching: old pages still show the previous setting.

The related problem, a parent category that shows no products, is covered in parent category not showing products.

Should products be in the parent too?#

Products in a subcategory appear on the parent’s product listing when the parent shows products, so you usually don’t need to tick both. Some shops tick both anyway to simplify exports or feeds. Pick one rule and apply it consistently. If your category counts look odd, our guide to product category counts explains how they are calculated.

Designing the tree#

  • Use shoppers’ words, not internal or supplier names.
  • Keep it shallow. Two levels below the top are usually enough.
  • Don’t split by attribute by hand. “Red shoes”, “Blue shoes” as manual categories drift out of date; filters or generated categories do it better.
  • Only create a subcategory with enough products to be worth a click.
  • Order them deliberately by dragging categories in the list.

Subcategory pages and SEO#

Each subcategory is a page that can rank for a more specific search, such as “waterproof walking boots”. Give the ones that matter a short unique description above the products, a descriptive title and a sensible thumbnail. Avoid creating many near-identical pages with one or two products, which look thin. Link to important subcategories from menus, the parent description and related blog posts, so visitors and search engines can find them. If pages aren’t appearing in search, see category pages not indexed.

Moving products between subcategories#

To reorganise, select products in the list, choose Bulk actions → Edit, and tick the new category. Bulk edit adds categories rather than removing old ones, so remove old assignments separately or use a CSV import where the Categories column replaces them. Test the pages as a shopper afterwards. Our guide to bulk assigning products to a category shows both methods.

Thumbnails and descriptions for subcategory tiles#

When a category page shows subcategory tiles, the thumbnails do most of the work. Use images of the same shape and style, ideally a representative product on a plain background, so the row looks like one set. A missing thumbnail shows a grey placeholder that makes the whole page look unfinished. Set the image when you create the subcategory, not months later.

Keep tile names short. Long names wrap onto two or three lines on phones and push the images out of line. If a name needs explaining, explain it in the category description instead.

Ordering subcategories#

WooCommerce lets you drag categories in the list under Products → Categories to set their order, which is used where categories are listed by menu order. Put the most popular or most useful first. The shortcode’s default sort is by name, so set orderby if you want a different sequence there. Menus are ordered separately under Appearance → Menus, so check both after reorganising.

Filters instead of more subcategories#

Before adding a third level, ask whether shoppers really want a separate page or just a way to narrow the list. Colour, size, material and price are usually better as filters on one category page than as dozens of tiny subcategories. Filters keep every matching product together, while subcategories force a shopper to guess where an item was filed. Reserve extra subcategory levels for groups people search for by name, such as ‘trail running shoes’, where a dedicated page has its own audience.

Checking the tree regularly#

Every few months, open the category list and sort by count. Look for subcategories with no products, ones with a single product and pairs that mean almost the same thing. Merge or remove them, and redirect any address that had visitors. Walk through the shop on a phone as a new visitor would: pick a product you know exists and see how many taps it takes to reach it from the home page. If it takes more than three or four, flatten the tree or add a shortcut from the menu.

Subcategories in menus#

WooCommerce doesn’t add subcategories to your navigation automatically. Under Appearance → Menus, or in the site editor on block themes, add the categories you want and indent the subcategories under their parent to create a drop-down. Include only the ones shoppers use most; a menu with forty entries is harder to use than a menu with eight that lead to well-organised category pages. On phones, drop-downs become tap-to-open lists, so test that the parent itself is still reachable.

When a subcategory should become a category#

A subcategory that grows into one of your biggest groups may deserve to move to the top level, where shoppers see it immediately. Before moving it, check its address will change, redirect the old one and update menus and banners that link to it. The reverse also happens: a top-level category with few products can become a subcategory of a related one, so the main menu stays focused on what people actually buy.

Subcategories that build themselves with Smart Categories#

Smart Categories, free on WordPress.org, creates rule-based categories, which can sit under any parent, and keeps their products up to date. Smart Categories Pro goes further for subcategories: choose an attribute such as colour on a parent category and it generates a subcategory for each value, or combines two attributes such as colour and size. You preview every page and its product count before anything is created, and new attribute values get their own subcategory on the daily run.

Smart Categories: a new rule-based category created and populated with matching products
Smart Categories (free): a rule-built category can sit under any parent category.

WooCommerce subcategories: frequently asked questions#


How do I add a subcategory in WooCommerce?

Under Products → Categories, add a new category and choose a parent category before saving. You can also edit an existing category and set its parent to move it under another one.


How do I show subcategories on a category page?

Set the category display option in the Customizer, or the category’s own Display type, to show subcategories or subcategories and products. Block themes may need a template or block change instead.


Why are my subcategories not showing?

Check the display setting, make sure each subcategory has visible products, confirm its parent is correct, consider hidden out of stock items, and clear any page cache before testing again.


Is there a shortcode for subcategories?

Yes. Use [product_categories parent=”ID”] with the parent category’s ID. Options such as columns, limit, orderby and hide_empty control which subcategory tiles appear and how they are arranged.


How many category levels should a shop have?

Usually no more than two levels below the top categories. Deeper trees hide products behind extra clicks, and filters often handle fine distinctions better than additional category levels.


More in Product Catalog

Keep exploring

All articles
Before you go Let Smart Categories do this in WooCommerce

Define the rules for a WooCommerce category once. Matching products enter automatically and leave when they no longer qualify.

Explore Smart Categories Get the free version

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