Title: [Plugin: JSON API] Order recent posts by meta_value_num
Last modified: August 20, 2016

---

# [Plugin: JSON API] Order recent posts by meta_value_num

 *  [Jack Lenox](https://wordpress.org/support/users/jacklenox/)
 * (@jacklenox)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-json-api-order-recent-posts-by-meta_value_num/)
 * Hi all,
 * I’m trying to use the JSON API with the following query:
 * `/api/get_recent_posts/?dev=1&custom_fields=Views&order=desc&orderby=meta_value_num&
   meta_key=Views`
 * My posts have a “Views” custom field but the meta_value_num doesn’t seem to be
   recognised by this plugin.
 * Any ideas?
 * Thanks,
 * Jack
 * [http://wordpress.org/extend/plugins/json-api/](http://wordpress.org/extend/plugins/json-api/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Jack Lenox](https://wordpress.org/support/users/jacklenox/)
 * (@jacklenox)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-json-api-order-recent-posts-by-meta_value_num/#post-2536865)
 * *bump*
 * Can anyone help here?

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: JSON API] Order recent posts by meta_value_num’ is closed to
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/json-api.svg)
 * [JSON API](https://wordpress.org/plugins/json-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-api/)
 * [Active Topics](https://wordpress.org/support/plugin/json-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-api/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Jack Lenox](https://wordpress.org/support/users/jacklenox/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-json-api-order-recent-posts-by-meta_value_num/#post-2536865)
 * Status: not resolved