Title: Sort posts by category
Last modified: August 18, 2016

---

# Sort posts by category

 *  [krille83](https://wordpress.org/support/users/krille83/)
 * (@krille83)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/sort-posts-by-category/)
 * 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?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [themadposter](https://wordpress.org/support/users/themadposter/)
 * (@themadposter)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/sort-posts-by-category/#post-607865)
 * Any updates on this? DId you ever get this to work? Is there some sort of plugin?
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/sort-posts-by-category/#post-607866)
 * No, there isn’t. Just manual coding: [The_Loop](http://codex.wordpress.org/The_Loop)–
   and see the multiple loops section.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Sort posts by category’ is closed to new replies.

## Tags

 * [category](https://wordpress.org/support/topic-tag/category/)
 * [sort](https://wordpress.org/support/topic-tag/sort/)

 * 2 replies
 * 3 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [18 years, 7 months ago](https://wordpress.org/support/topic/sort-posts-by-category/#post-607866)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
