WordPress.org

Support

Support » Plugins and Hacks » Results for custom post type only displays three items

Results for custom post type only displays three items

  • First of all, great plugin. JSON is so much more fun to work with than XML. 🙂

    I’m having a bit of trouble with one of my queries, though. I’m trying to return results that:

    * Are part of a certain custom post type (“event”)

    * Have a custom field with a date that is greater than or equal to the one passed to the JSON API.

    I think I’ve got it figured out, but the JSON API plugin is only returning three results…while a similar query returns six using query_posts(). I don’t know if I’ve got an issue with the URL I put together or if there’s a problem with the plugin’s post type handling.

    http://www.example.org/?json=get_recent_posts&post_type=event&custom_fields=event_date,event_link,event_author&meta_key=event_date&meta_compare=%3E%3D&meta_value=2011-6-8%2014%3A46%3A00&order_by=meta_value&order=ASC

  • The topic ‘Results for custom post type only displays three items’ is closed to new replies.