Title: Sort Posts by Category
Last modified: August 19, 2016

---

# Sort Posts by Category

 *  [moderno](https://wordpress.org/support/users/moderno/)
 * (@moderno)
 * [16 years ago](https://wordpress.org/support/topic/sort-posts-by-category-3/)
 * Hi,
 * I’m trying to list post by categories. I’ve found that this is possible in several
   ways, but none of them work as desired. I’m trying to make a loop that lists 
   the posts like this:
 * **Category**
    _post-title,post-title,post-title, etc  **Category2**  post-title,
   post-title,post-title, etc
 * **Category3**
    _post-title,post-title,post-title, etc_
 * Hardcoding this and making a custom loop for each category is easy, but doing
   a custom loop that echoes each category and it’s posts is giving me a headache.
 * Any clues on how to approach this?
 * Thanks!

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

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [16 years ago](https://wordpress.org/support/topic/sort-posts-by-category-3/#post-1530616)
 * Are you trying to list every post from every category on one page?
 * Start here: [http://codex.wordpress.org/Template_Tags/wp_list_categories](http://codex.wordpress.org/Template_Tags/wp_list_categories)
 * Then I think you’d want to make a for loop. For each category, list post.
 * There’s also this plugin: [http://wordpress.org/extend/plugins/list-category-posts/](http://wordpress.org/extend/plugins/list-category-posts/)
 *  Thread Starter [moderno](https://wordpress.org/support/users/moderno/)
 * (@moderno)
 * [16 years ago](https://wordpress.org/support/topic/sort-posts-by-category-3/#post-1530617)
 * Thanks for the advice Ipstenu! I’ll take a look at that plugin, and then I’ll
   try writing my own for each loop. I’ll post here any advance!

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

The topic ‘Sort Posts by Category’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [moderno](https://wordpress.org/support/users/moderno/)
 * Last activity: [16 years ago](https://wordpress.org/support/topic/sort-posts-by-category-3/#post-1530617)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
