Hi everybody, I'm trying to make the category pages list the posts ordered per subcategories instead of the default wp posts order.
I think I would need to
1) get the current category's subcategories;
2) cicle the subcategories with a foreach;
2.1) print the subcategory name;
2.2) loop all the posts inside the subcategory;
Unfortunately, I can only make the first passage (it was useful a post by Joost de Valk).
Does anybody have an idea how to make the second passage?
Many thanks in advance.