Pagination (paged) parameter doesn't seem to work
-
I’m able to make an $http.get request using a number of the filter parameters but for some reason the
paged
parameter doesn’t seem to be allowing me to choose the posts from the 2nd, 3rd paginated page and is instead being ignored.$http.get('/wp-json/posts?filter[posts_per_page]=3)
WORKS$http.get('/wp-json/posts?filter[posts_per_page]=3&filter[order]=ASC)
WORKS$http.get('/wp-json/posts?filter[posts_per_page]=3&filter[order]=ASC&filter[paged]=2')
DOESN’T WORK – it shows the same thing as the previous example: posts 1-3 in ascending order vs my expected posts 4-6.Am I missing something or is this perhaps broken in the API currently?
Side question (hope this is ok ?? ) – is there any way to return $max_num_pages along with the results of this .get request?
Thanks for any help and I’m so stoked to see WP API coming together!
- The topic ‘Pagination (paged) parameter doesn't seem to work’ is closed to new replies.