WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: JSON-API] Modifying the date query (1 post)

  1. awbrooke824
    Member
    Posted 2 years ago #

    I'm using JSON-API to pull posts based on the last time the user visited. For example, if the user last visited Aug. 4, 2011 then I would want to pull posts that have been modified (includes creates) SINCE that day.

    I've tried creating my own controller as well as using the "posts_where" filer but to no avail. My approach at this time is to start with posts from the users last visited month and move one month ahead while retrieving the posts one at a time if the modified date is greater than the last visited date.

    json=get_date_posts&dev=1&date=201108&include=id,modified

    I did see a similar post at http://wordpress.org/support/topic/plugin-json-api-get-posts-after-date?replies=1 but there are no replies

    Appreciate any guidance out there. I'm using the API to feed an Android APP, so network chatter needs to be kept to a minimum.

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic