WooCommerce · Guide
How to Show Product Category in WooCommerce (Step by Step)

Short answer
In a classic theme, go to Appearance, then Customize, then WooCommerce, then Product Catalog, and set the shop page to show categories. In a block theme, add a product categories block to the Product Catalog template. You can also add categories to menus, sidebars or any page with a block or shortcode.
Key takeaways
- Assign products to categories before displaying them.
- Classic themes use the Product Catalog settings in the Customizer.
- Block themes use templates in the Site Editor.
- Enable Product categories in Screen Options to add them to menus.
- Shortcodes show categories on any page.
- Empty categories are often hidden by default.
How do you show product categories in WooCommerce?
Set the shop page to show categories in Appearance, Customize, WooCommerce, Product Catalog, or add a product categories block, shortcode or menu item where you want them to appear.
Product categories help shoppers find what they want. A clothing store might use Men, Women and Kids, with subcategories underneath.
WooCommerce can show categories in several places: on the main shop page, inside category pages, in menus, in sidebars, on any page through blocks or shortcodes, and on single product pages.
The right method depends on where you want them and whether your theme is a classic theme or a block theme. This guide covers each option.
Should you show categories or products first?
Show categories first when you sell many kinds of products, and show products first when your range is small or shoppers usually know what they want.
A store with a few dozen products in one niche gains little from a category grid. Shoppers would rather see the products straight away.
A store with hundreds of products across clearly different groups is different. A category grid helps shoppers pick a direction before scrolling.
The combined setting, categories above products, is a middle ground. It suits medium-sized stores, though it can push products far down the page on mobile.
Watch your analytics after the change. If visitors click category tiles and then buy, keep them. If they scroll past the tiles to the products, consider showing products only.
Where can product categories appear?
Categories can appear on the shop page, in navigation menus, in sidebars and footers, on any page or post through blocks or shortcodes, and on each product page.
| Location | Classic theme method | Block theme method |
|---|---|---|
| Shop page | Customizer, Product Catalog settings | Edit the Product Catalog template in the Site Editor |
| Navigation menu | Appearance, Menus, Product categories | Navigation block, add category links |
| Sidebar or footer | Product Categories block or widget | Add the block to the template part |
| Any page | Product Categories List block or shortcode | Same blocks in the editor |
| Single product page | Shown in product meta by default | Product Meta block in the Single Product template |
Before you start, make sure your products are assigned to categories. Go to Products, then Categories, to add and organize them. The WooCommerce documentation on product taxonomies explains categories, tags and attributes.
Step 1: How do you show categories on the shop page?
In a classic theme, go to Appearance, then Customize, then WooCommerce, then Product Catalog, and set the shop page display to show categories or categories and products.
The Shop page display setting has three choices:
- Show products lists products only.
- Show categories lists category tiles only.
- Show categories and products lists category tiles above the products.
The Category display setting works the same way for category pages. It lets a parent category show its subcategories first.
Click Publish to save. Category tiles use each category's thumbnail image, so add a thumbnail to every category under Products, then Categories.
If your shop page shows nothing at all after changes, see our guide on fixing products not showing on the shop page.
Step 2: How do you show categories on the shop page in a block theme?
Open Appearance, then Editor, edit the Product Catalog template, add a Product Categories List block or category grid above the product collection, and save.
Block themes do not use the Customizer settings above. The shop layout is a template in the Site Editor.
- Go to Appearance, then Editor, then Templates.
- Open the Product Catalog template.
- Add a block that lists product categories where you want them.
- Adjust the display settings in the block sidebar.
- Click Save.
The changes apply to the shop page for every visitor. Our guide on customizing WooCommerce pages covers more template edits.
Step 3: How do you add product categories to the menu?
In Appearance, then Menus, open Screen Options, tick Product categories, then select the categories from the new panel and add them to your menu.
Product categories are hidden on the Menus screen by default. Screen Options at the top right lets you turn the panel on.
Tick the categories you want and click Add to Menu. Drag them to reorder or nest them under a parent item, then click Save Menu.
The WordPress Menus screen documentation explains the drag-and-drop controls. Our guide on adding a sub-menu shows how to nest subcategories.
In a block theme, edit the Navigation block in the Site Editor and add links to category pages instead.
Step 4: How do you show categories in a sidebar?
Add the Product Categories block, or the classic Product Categories widget, to a sidebar or footer widget area and choose list or dropdown display.
Go to Appearance, then Widgets, open the sidebar, and add the product categories block. Its settings let you show product counts, show hierarchy and display as a dropdown.
A dropdown saves space when you have many categories. A list is easier to scan when you have only a few.
Showing product counts next to each category helps shoppers see at a glance where most of the range sits. Turn it off if some categories have very few items, since low numbers can make a store look sparse.
Our guide on adding a widget in WordPress explains the Widgets screen if you are new to it.
How do you show categories on any page with a shortcode?
Add a Shortcode block and use the product_categories shortcode to show a grid of categories, or the products shortcode with a category attribute to list products from one category.
Shortcodes work in any theme and page builder. Two are useful here:
[product_categories number="6" columns="3" parent="0"]
[products category="hoodies" limit="8" columns="4"]
The first shows up to six top-level categories in three columns. The second lists eight products from the category with the slug hoodies.
Find a category's slug under Products, then Categories, in the slug column. Use the slug, not the display name, because names can contain spaces and capital letters that the shortcode will not match.
The WooCommerce shortcodes documentation lists every attribute, including ordering and hiding empty categories.
How do you show the category on a single product page?
Most themes show categories in the product meta area under the add to cart button; if missing, check theme settings or add the Product Meta block to the Single Product template.
Classic WooCommerce templates print a Category line with links to each category the product belongs to.
Some themes hide it for a cleaner look. Look in the theme's WooCommerce or shop settings for a product meta option.
In a block theme, open the Single Product template in the Site Editor and check that a Product Meta block is present.
Developers can also change this output with hooks. The WooCommerce developer documentation explains templates and hooks, and changes belong in a child theme.
Why are some categories not showing?
Categories usually stay hidden because they have no published products, the display is set to products only, a category has no thumbnail, or a cache shows an old page.
- Empty categories. Many displays hide categories with no published products. Assign products or change the hide empty setting.
- Wrong display setting. Recheck the Product Catalog settings or the template.
- Missing thumbnails. Category tiles show a placeholder without an image.
- Cache. Clear your caching plugin after changing shop settings.
If you also want to style the category page itself, see our guide on editing the WooCommerce product category page.
How should you organize categories for shoppers and search?
Keep categories few, clear and logical, with subcategories only where they help, and give each one a short description and image.
Shoppers scan categories quickly. Names like Women's Shoes beat clever brand phrases.
Each category page is also a page search engines can index. A short, useful description at the top helps both shoppers and search. Our guide on handling category pages for SEO explains what to write.
If you have a long product list, the developer reference for taxonomies explains how categories work under the hood, which helps when planning large catalogs.
Frequently asked questions
How do I show categories instead of products on the shop page?
In a classic theme, open Appearance, Customize, WooCommerce, Product Catalog and set Shop page display to Show categories. In a block theme, edit the Product Catalog template in the Site Editor and replace or precede the product list with a product categories block.
Why are my product categories not in the menu screen?
The panel is hidden by default. On the Menus screen, open Screen Options at the top right and tick Product categories. A new panel appears in the left column, where you can select categories and add them to your menu.
How do I show products from one category on a page?
Use a product collection block filtered by category, or add a Shortcode block with the products shortcode and the category attribute set to the category slug. You can also set a limit, columns and ordering in the shortcode.
Why does a category tile show a grey placeholder?
The category has no thumbnail image. Go to Products, then Categories, edit the category and upload a thumbnail. Category tiles on the shop page and in category grids use that image.
How do I hide empty product categories?
Many displays hide categories with no published products by default. The product categories shortcode has a hide empty option, and the categories block has a matching setting. Assign products to a category if you want it to appear.
Sources
- Managing Product Categories, Tags and Attributes WooCommerce
- WooCommerce Shortcodes WooCommerce
- Appearance Menus Screen WordPress.org Documentation
- WooCommerce Developer Documentation WooCommerce
- Taxonomies WordPress Developer Resources
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
Related guides
About the editors
Researched from the primary sources listed above and checked against our editorial rules before publishing.


