WordPress.org

Support

Support » Plugins and Hacks » [Plugin: JSON API] get_page/?id=xx&children=true" returns only 5 children

[Plugin: JSON API] get_page/?id=xx&children=true" returns only 5 children

  • 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/

Viewing 1 replies (of 1 total)
  • 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

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: JSON API] get_page/?id=xx&children=true" returns only 5 children’ is closed to new replies.