Title: Sort WP_Query with numeric custom_field
Last modified: August 30, 2016

---

# Sort WP_Query with numeric custom_field

 *  [snooper](https://wordpress.org/support/users/snooper/)
 * (@snooper)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/sort-wp_query-with-numeric-custom_field/)
 * Hi Folks
 * I have added a numeric field (called ‘video_order’) to a certain post type, via
   ACF
    I would like to sort the list of posts, by that numeric field. I have made
   sure to go through the posts and give them all a value.
 * This is the Query i have tried, which does not seem to work.
 * Can someone suggest something?
 * Thanks!
 * `$args = array( 'post_type' => 'post_sermons','post_status' => 'publish', 'posts_per_page'
   => ot_get_option('wpl_sermon_per_page'), 'paged'=> $paged,'orderby' => 'video_order','
   order' => 'ASC' );`

The topic ‘Sort WP_Query with numeric custom_field’ is closed to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [snooper](https://wordpress.org/support/users/snooper/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/sort-wp_query-with-numeric-custom_field/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
