Category page ordered per subcategories (2 posts)

  1. runen
    Posted 8 years ago #

    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.

  2. sebrenner
    Posted 8 years ago #


    Any luck making this happen?

    I would like the same page on my site.


Topic Closed

This topic has been closed to new replies.

About this Topic