Title: blinder's Replies | WordPress.org

---

# blinder

  [  ](https://wordpress.org/support/users/blinder/)

 *   [Profile](https://wordpress.org/support/users/blinder/)
 *   [Topics Started](https://wordpress.org/support/users/blinder/topics/)
 *   [Replies Created](https://wordpress.org/support/users/blinder/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/blinder/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/blinder/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/blinder/engagements/)
 *   [Favorites](https://wordpress.org/support/users/blinder/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JSON API] [Plugin: JSON API] get_page_index returns only five pages](https://wordpress.org/support/topic/plugin-json-api-get_page_index-returns-only-five-pages/)
 *  [blinder](https://wordpress.org/support/users/blinder/)
 * (@blinder)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-json-api-get_page_index-returns-only-five-pages/#post-1648618)
 * so i did find a hack workaround for this.
 * in this file: wp-content/plugins/json-api/controllers/core.php
 * around line: 231, in the array arguments, you want to add this:
 * ‘numberposts’ => ’10’
 * so mine now looks like:
 *     ```
       $wp_posts = get_posts(array(
         'post_type' => 'page',
         'post_parent' => 0,
         'order' => 'ASC',
         'orderby' => 'menu_order',
         'numberposts' => '10'
       ));
       ```
   
 * i suppose i could make this a little better by using doing:
 * `extract($json_api->query->get('number'));`
 * so you could then do:
 *     ```
       'numberofposts' => $number
       ```
   
 * and you just simply pass the number of pages you want returned.
 * again, not great… i just wish for posts of type ‘page’ would just return them
   all based on their published status. i may continue to look into that.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JSON API] [Plugin: JSON API] get_page_index returns only five pages](https://wordpress.org/support/topic/plugin-json-api-get_page_index-returns-only-five-pages/)
 *  [blinder](https://wordpress.org/support/users/blinder/)
 * (@blinder)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-json-api-get_page_index-returns-only-five-pages/#post-1648617)
 * yes same thing is happening with mine. i’m currently digging through the code
   to see if i can figure out where the limitation is. it appears to be in introspector.
   php but that has a global $post variable and uses a method i have yet to find
   called have_posts() so i’ll continue to dig. if i manage to find a hacked fix…
   i will post… but i would hope the author can shed some real light on this versus
   a user’s terrible hack 🙂

Viewing 2 replies - 1 through 2 (of 2 total)