WordPress.org

Forums

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

  1. pcg4m3s
    Member
    Posted 1 year 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 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • JSON API
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.