Title: ThomasG's Replies | WordPress.org

---

# ThomasG

  [  ](https://wordpress.org/support/users/thomasg/)

 *   [Profile](https://wordpress.org/support/users/thomasg/)
 *   [Topics Started](https://wordpress.org/support/users/thomasg/topics/)
 *   [Replies Created](https://wordpress.org/support/users/thomasg/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/thomasg/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/thomasg/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/thomasg/engagements/)
 *   [Favorites](https://wordpress.org/support/users/thomasg/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [get_posts() sort by parent/child relationship](https://wordpress.org/support/topic/get_posts-sort-by-parentchild-relationship/)
 *  Thread Starter [ThomasG](https://wordpress.org/support/users/thomasg/)
 * (@thomasg)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/get_posts-sort-by-parentchild-relationship/#post-3510039)
 * **Hello again!**
 * I actually ended up solving this one myself, by using a different approach.
 * Instead of using get_posts(), i used get_pages() which supports a hierarchical
   tree structure, thus outputting the array as desired.
    I hope that will help 
   someone. 🙂
 * **// Thomas G**

Viewing 1 replies (of 1 total)