Title: Posts order by category&gt;&gt;subcategory
Last modified: August 19, 2016

---

# Posts order by category>>subcategory

 *  [afarras](https://wordpress.org/support/users/afarras/)
 * (@afarras)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/posts-order-by-categorysubcategory/)
 * I try to change archives.php to have a list of posts order by Category>>Subcategory
   like this:
    HOTELS BARCELONA post1 post2 post3 MADRID post1 post2 …..
 * HOTELS is the parent category, and BARCELONA and MADRID are the child category.
 * How i need to describe query_posts to have this?
 * thanks
 * afarras

The topic ‘Posts order by category>>subcategory’ is closed to new replies.

## Tags

 * [orderby](https://wordpress.org/support/topic-tag/orderby/)
 * [query_posts](https://wordpress.org/support/topic-tag/query_posts/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [afarras](https://wordpress.org/support/users/afarras/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/posts-order-by-categorysubcategory/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
