WordPress.org

Ready to get started?Download WordPress

Forums

JSON API
get_page/?id=xx&children=true" returns only 5 children (2 posts)

  1. thkn
    Member
    Posted 2 years ago #

    Hi there,

    I read that there was a bug that only five children were returned with the method get_page_index and it has been resolved. I think I found a similar bug since the number of children of get_page are limited to five, too, if children=true (or any simiilar non-empty value) is set. Next to this, the number of children of the pages returned by get_page_index is just five, too.

    I am not a php-crack able to solve the problem in the plug-in by myself, so I would be very happy if someone could give me a hint how to get workaround or fix the plug-in :)

    Best regards,
    thkn

    JSON Api Version: 1.07

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

  2. ronal.sanchez
    Member
    Posted 1 year ago #

    Hey there,

    1. Open file singletons/introspector.php within JSON Api plugin folder.
    2. add 'showposts' => -1 after 'orderby' => 'menu_order'

    This will remove remove the limit from child post query for the get_page function.

    Hope this helps
    http://www.ronalsanchez.com

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic