Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am using JSON API for getting web services.. I have 80 records in my wp_posts table . I need to display 10 , 10 records so that my mobile app will be faster. I used the following method in this

http://mysite.com/api/?json=get_category_posts&slug=mediapr&count=84

here i get 84 records, if i specify my count to 10 , only ten records will be displayed but later on i need to fetch next ten records.

I searched json api documentation but dint find solution What method should i use to do so.. please help

share|improve this question

1 Answer 1

up vote 1 down vote accepted

First, there's the debug query arg: ?dev=1, which you can simply append to the URl.

AFAIK, the plugin relies on get_posts(), so you should be save to use &offset=10.

_Disclaimer: Not tested, as I ain't got a setup with the plugin in use.`

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.