9

I can go to 'WooCommerce -> Settings' link from side bar admin menu & select 'Catalog' tab & then tick 2 check boxes "Show subcategories on the shop page" But this shows a list of categories, then all products. What i want is on shop page, At first category title, then its products under it, then next category and its products.

In short, i want to list all products category wise.

0

1 Answer 1

29

You could create a new shop page and use the woocommerce shortcodes in combination with headers to create a list of products organized by category. For example, in the HTML editor you could do something like this:

<h2>Category Name</h2>
[product_category category="category-name" per_page="12" columns="4" orderby="date" order="desc"]
4
  • 2
    tried it and it works fine, without needing heavy dev skills. I suggest this answer be accepted as it gives a proper solution to the given problem.
    – pixeline
    Nov 27, 2012 at 19:53
  • Worked great for me to. Jun 11, 2014 at 19:16
  • It worked for me also. I was trying to do this by modifying the code but never thought its this much easy. Jan 13, 2016 at 7:26
  • can you add filters , if you do it like this? Feb 13, 2018 at 17:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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