Support » Plugins and Hacks » JSON API » [Plugin: JSON API] get_page_index 5 children only

  • pmercey

    (@pmercey)


    It seems the bug [Plugin: JSON API] get_page_index returns only five pages is only partly fixed, indeed when looping on the children of a page it returns only 5 pages.

    I temporarily fixed it in json-api/singletons/introspector.php , function attach_child_posts, adding numberpost key in the array below.

    $wp_children = get_posts(array(
    ‘post_type’ => $post->type,
    ‘post_parent’ => $post->id,
    ‘order’ => ‘ASC’,
    ‘orderby’ => ‘menu_order’,
    ‘numberposts’ => 100
    ));

    But I am sure it would require a more in-depth fix.

    Thanks for the great plugin anyway 🙂

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

  • The topic ‘[Plugin: JSON API] get_page_index 5 children only’ is closed to new replies.