WordPress.org

Ready to get started?Download WordPress

Forums

JSON API
How get posts for category with offset? (2 posts)

  1. pcg4m3s
    Member
    Posted 12 months ago #

    for example in category "news" of my blog there are 50 posts. For get last 10 posts I do: http://mywordpress.com/?json=get_category_posts&slug=news&count=10&status=publish And it work correctly. Now I want to get my posts from 11 to 20 skipping last 10 posts, etc. How can I do?

    http://wordpress.org/plugins/json-api/

  2. khawar.shzd
    Member
    Posted 8 months ago #

    Try adding query parameter "page" instead of "count"
    &page=1
    &page=2
    &page=3
    .
    .
    .
    .
    Its working for me. :)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.