Forums
Home / Plugin: JSON API / How fetch next page
(@kurddata2006)
7 years, 7 months ago
Hi , How can I fetch next page (next 10 posts ) in a filtered category ex: I have this http://MyDomain/api/get_category_posts/?category_id=2 And I can get 10 last posts , How can I give page 2 or 3 . or … each included 10 posts ? Thanks
(@vfxlab)
&page=1 , &page=2 will be get the pages
Like http://mydomain/api/get_category_posts/?category_id=2&page=2
You can use category slugs as well
http://mydomain/api/get_category_posts/?slug=CATSLUG&page=2