WordPress.org

Support

Support » How-To and Troubleshooting » Category page ordered per subcategories

Category page ordered per subcategories

  • 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.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Category page ordered per subcategories’ is closed to new replies.