Title: offset
Last modified: August 30, 2016

---

# offset

 *  [MHalukK](https://wordpress.org/support/users/mhalukk/)
 * (@mhalukk)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/offset-11/)
 * I would like to implement an ‘infinite scroll’ on the posts.
    Is there a way 
   to adjust the params below to achieve that?
 * var response_url = ‘[http://example.com/&#8217](http://example.com/&#8217);;
 * var params = {
    json:’get_category_posts’, category_slug:’science’, // posted_before:??};
 * [https://wordpress.org/plugins/json-api/](https://wordpress.org/plugins/json-api/)
 * WP_Query supports date_query based and it does understand from ‘before’ param:
 * before (string/array) – Date to retrieve posts before. Accepts strtotime()-compatible
   string, or array of ‘year’, ‘month’, ‘day’ values:
 * The question is how to we tell json-api to use this param in filtering down the
   posts!

The topic ‘offset’ 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/)

## Tags

 * [offset](https://wordpress.org/support/topic-tag/offset/)

 * 0 replies
 * 1 participant
 * Last reply from: [MHalukK](https://wordpress.org/support/users/mhalukk/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/offset-11/)
 * Status: not resolved