I would like to know how to display all the categories and subcategories on my WooCommerce archive-product page. (The shop index page).

I am aware you can go to the WooCommerce admin in Catalog options and tick show categories, however this displays images of the parent categories.

I am looking for something exactly like this.. http://www.simonandsimononline.com/shirts.html

As you can see on the left, I want some function to output all the categories and subcategories as links (no images).


Sorted. It is simply done using the standard Wordpress Menu's feature in Wordpress. The same way you would create any other dynamic menu.

Make sure Product Categories is checked in screen options.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.