Title: Is filter &quot;offset&quot; working?
Last modified: August 21, 2016

---

# Is filter "offset" working?

 *  Resolved [juandbb](https://wordpress.org/support/users/juandbb/)
 * (@juandbb)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/is-filter-offset-working/)
 * Hello,
 * I’m trying to use the offset filter like this:
 * /posts?filter[posts_per_page]=10&filter[offset]=10
 * But doesn’t seem to work. It always returns the last posts, doesn’t matter what
   number I pass in the offset parameter.
 * Thank you in advance.
 * [https://wordpress.org/plugins/json-rest-api/](https://wordpress.org/plugins/json-rest-api/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [iameugenejo](https://wordpress.org/support/users/iameugenejo/)
 * (@iameugenejo)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/is-filter-offset-working/#post-5155242)
 * This is serious… why is it not working?
 *  [iameugenejo](https://wordpress.org/support/users/iameugenejo/)
 * (@iameugenejo)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/is-filter-offset-working/#post-5155243)
 * This commit saved my day:
 * [https://github.com/nrutkowski/WP-API/commit/1fef752aeb233114cb7768a70c3c41b24e009083](https://github.com/nrutkowski/WP-API/commit/1fef752aeb233114cb7768a70c3c41b24e009083)
 * I just had to modify the plugin file by myself since it’s not merged yet.
 *  [NiclasLindqvist](https://wordpress.org/support/users/niclaslindqvist/)
 * (@niclaslindqvist)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/is-filter-offset-working/#post-5155255)
 * Thanks [@iameugenejo](https://wordpress.org/support/users/iameugenejo/), life
   saver. Also it turns out you can use `/posts?page=X&filter[posts_per_page]=Y`
   and get it it respects posts_per_page. This was discussed in this thread:
 * [Filter params not working? #250](https://github.com/WP-API/WP-API/issues/250)
 *  Plugin Author [Ryan McCue](https://wordpress.org/support/users/rmccue/)
 * (@rmccue)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/is-filter-offset-working/#post-5155266)
 * You should be able to use the `page` parameter instead. See also [this pull request](https://github.com/WP-API/WP-API/pull/434).

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Is filter "offset" working?’ is closed to new replies.

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

 * 4 replies
 * 4 participants
 * Last reply from: [Ryan McCue](https://wordpress.org/support/users/rmccue/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/is-filter-offset-working/#post-5155266)
 * Status: resolved