WordPress.org

Ready to get started?Download WordPress

Forums

Sort posts by category (3 posts)

  1. krille83
    Member
    Posted 6 years ago #

    lets say i'm on the index page and viewing all post, then they are sorted by date. But if i want them to get sorted something like this:

    <h2>Category2</h2>
    post1 i category2
    post2 i category2
    post3 i category2

    <h2>Category3</h2>
    post1 i category3
    post2 i category3
    post3 i category3 and so on...

    Any pointers on sorting post like this?

  2. themadposter
    Member
    Posted 6 years ago #

    Any updates on this? DId you ever get this to work? Is there some sort of plugin?

  3. moshu
    Member
    Posted 6 years ago #

    No, there isn't. Just manual coding: The_Loop - and see the multiple loops section.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags