Skip to content
WordPress.org
  • News
  • Showcase
  • Hosting
    • Themes
    • Plugins
    • Patterns
    • Blocks
    • Openverse ↗︎
    • Learn WordPress
    • Documentation
    • Forums
    • Developers
    • WordPress.tv ↗︎
    • Make WordPress
    • Education
    • Photo Directory
    • Five for the Future
    • Events
    • Job Board ↗︎
    • About WordPress
    • Enterprise
    • Gutenberg ↗︎
    • Swag Store ↗︎
  • Get WordPress
Get WordPress
WordPress.org

Forums

  • Welcome to Support
  • Guidelines
  • Get involved
  • Log in
  • Welcome to Support
  • Guidelines
  • Get involved
  • Log in
Skip to content

Forums / Plugin: JSON API / Sort by meta_value_num?

Sort by meta_value_num?

  • daitoku

    (@daitoku)


    12 years, 9 months ago

    I have this working other than the sorting. Any help would be great.

    http://site.dev/api/?json=core.get_recent_posts&post_type=contest&include=title,url,custom_fields&custom_fields=first_name,votes&count=-1&orderby=meta_value_num&meta_key=votes

    http://wordpress.org/extend/plugins/json-api/

Viewing 1 replies (of 1 total)
  • Thread Starter daitoku

    (@daitoku)

    12 years, 9 months ago

    Tracked down the answer use get_posts not get_recent_posts

    http://site.dev/api/?json=get_posts&post_type=contest&include=title,url,custom_fields&custom_fields=first_name,votes&count=-1&orderby=meta_value_num&meta_key=votes

Viewing 1 replies (of 1 total)

The topic ‘Sort by meta_value_num?’ is closed to new replies.

  • JSON API
  • Frequently Asked Questions
  • Support Threads
  • Active Topics
  • Unresolved Topics
  • Reviews

Tags

  • meta_value_num
  • sort
  • 1 reply
  • 1 participant
  • Last reply from: daitoku
  • Last activity: 12 years, 9 months ago
  • Status: not resolved
  • About
  • News
  • Hosting
  • Privacy
  • Showcase
  • Themes
  • Plugins
  • Patterns
  • Learn
  • Documentation
  • Developers
  • WordPress.tv ↗
  • Get Involved
  • Events
  • Donate ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org
  • Visit our X (formerly Twitter) account
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • Visit our Facebook page
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our TikTok account
  • Visit our YouTube channel
  • Visit our Tumblr account
Code is Poetry
The WordPress® trademark is the intellectual property of the WordPress Foundation.