Title: get_posts in custom order?
Last modified: August 19, 2016

---

# get_posts in custom order?

 *  [slavix](https://wordpress.org/support/users/slavix/)
 * (@slavix)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/get_posts-in-custom-order/)
 * Hi,
    I need to get posts for a category ordered in a custom way, get_posts function
   supports ASC and DESC for id or title, but I need more control with specific 
   order. Is there any way to do this?
 * thanks
    Slava

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

 *  [eveevans](https://wordpress.org/support/users/eveevans/)
 * (@eveevans)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/get_posts-in-custom-order/#post-1393793)
 * Exactly which order do you want to have?
 *  Thread Starter [slavix](https://wordpress.org/support/users/slavix/)
 * (@slavix)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/get_posts-in-custom-order/#post-1393962)
 * custom. I need to be able to list thems in an order specified by user:
    item 
   a after item b, item c right next to item g, …
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/get_posts-in-custom-order/#post-1393967)
 * Use the arguments **orderby=meta_value** and **meta_key=your_meta_key_here**.
   The [query_posts() artilce](http://codex.wordpress.org/Template_Tags/query_posts)
   has more info.
 * Also review:
    [http://wordpress.org/extend/plugins/wp-custom-fields-search/](http://wordpress.org/extend/plugins/wp-custom-fields-search/)

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

The topic ‘get_posts in custom order?’ is closed to new replies.

## Tags

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

 * 3 replies
 * 3 participants
 * Last reply from: [MichaelH](https://wordpress.org/support/users/michaelh/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/get_posts-in-custom-order/#post-1393967)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
