Hello,
I hope this is a simple question, is it possible to have a loop that displays the parent category, and all posts in it, but organized by sub-categories?
This page is supposed to work as a catalog, so, it will have several Main Categories that hold many products in sub-categories. The idea is to display each Main Category and show all posts, something like:
Main category
Sub-Cat 1
Post 1
Post 2
Post 3
Sub-Cat 2
Post 1
Post 2
etc...
Should that loop be in the category.php template? I thought about it, and all I can think of is a separate category-slug.php file for each main category, but there has to be a better way.
Thank you very much for your help!