I’m answering my own question because it might be useful to someone else sometime.
After reading through the somewhat sparse documentation on the wordpress plugin directory and getting nowhere. I found a variable in the JSON API code here’s how it works PS -1 just mean “all”:
$json_api->query->count=-1;
$posts = $json_api->introspector->get_posts(array('post_type' => array('post','tweet','gallery','video','music'), 'post_parent' => 0, 'order' => 'ASC', 'orderby' => 'date', 'numberposts' => 4));
echo count($posts);
you can set the count to whatever you want before making the api call.
Related Posts:
- PHP > Scheduled Tasks > Sending daily email with dynamic API variables
- Showing results from json-string in WordPress search results page
- Get page content using slug
- Where to store PHP files created by plugin / themes
- What is the correct way to build a widget using OOP
- Has anyone managed to integrate the wp_editor inside a widget?
- How to: Rest endpoint returning empty object
- Two-step login process – Is it possible?
- get all products of one category
- $wp_filesystem returns NULL. What are the dependencies?
- How to store accumulate multiple option values in a single array using Options_API
- Admin-ajax.php appending a status code to ajax response
- How to get all events from ‘All in one Events calender’ plugin in JSON format?
- Generate dynamic page through data from another page
- Show dialog box in TinyMCE plugin and use WordPress php functions in it
- How do I alter the comment form ‘allowed tags’ text in a plugin?
- Applying OO patterns and principles to plugin development
- Failed to Open Stream: Permission Denied While Writing to an XML File in a WordPress Plugin
- Why does wp_remote_post returns an empty body response on certain endpoints?
- How to enqueue or include json file to a plugin
- Widget HTML Display Problem
- json_decode does not work on WordPress
- wordpress is adding a second backslash when I use addslashes
- WordPress Specified file failed upload test
- Make Database query only when option is updated
- Getting a WordPress Debug Strategy
- Working of foreach loop with array
- Plugin Development: Storing and Manipulating Data That Fits JSON in Database
- Adding Permalink to Slides with ‘Simple Nivo Slider’ plugin?
- Setting a post’s category
- Why doesn’t update_post_meta work for certain strings?
- post content and shortcode content displaying out of order
- “Rendering of admin template [path to template] failed”
- How to determine which capability to use?
- How to write a shopping queue line plugin with a queue button?
- GET request return value as error instead of success
- How to use Datatable with Ajax when creating plugin on WordPress?
- ajax response strips multidimensional array and unable to decode
- How does one make a URL return dynamic JSON with custom Content Type?
- How to debug new shortcode? And how to get string from shortcode into code?
- foreach argument to get specific file types getting too many returns
- Populate select option with JSON file
- WP API users per page
- PHP calling function within a class
- Do you see any problems (mainly security-related) with how I’ve used wp_ajax_* actions?
- Search in particular category in wordpress
- Developing a plugin, ran it through P3 Profiler, shows up slow, but I don’t know why
- Is it possible to make WordPress as a RESTful app?
- oneOf two possible objects in WP REST API?
- Programmatically creating posts based on external JSON feed (asynchronously)
- External api call using wordpress
- Error 400 Invalid “products[1].productId” Kinguin [closed]
- Is there a way to use MySQL JSON functions in meta queries?
- WP 3.3 makes it possible to add meta box to Category Editor Screen?
- How to automatically activate a plugin on install
- disable defaault wordpress comments from a plugin
- using admin functions on frontend
- Widget internal hooks and functions
- Javascript Function Called Too Early in PHP Script
- Pause plugin option page until all data manipulation is complete
- How to display TinyMCE HTML view?
- WordPress plugin advice: suggestions for writing a plugin the correct way
- WordPress database error: [Query was empty] – using $wpdb->prepare()
- Why doesn’t my Table get created?
- Modify code for functions.php with specific twitter user url and hashtags
- Need Help Determining Where Header Error is Happening
- How to link to custom “archive like” page with custom permalink rules “dynamically”
- can members have multiple registration using the same password?
- Extract Information from post content (using regex?)
- Using jQuery prepend() with file include
- rewrite_rules problem
- Is it possible to have instead mypage.com/?page_id=81 to have mypage.com/cool/?
- User Data Handling between two plugins
- How to add text editor in plugin menu?
- Development plugin to view and manage scheduled wordpress cron jobs?
- How to receive notification of deprecated API elements and functions?
- Using password protection to load different page elements?
- Add user managable titles to custom menus?
- Decontruct serialized data array from wp_options
- can’t access some WordPress function from my plugin
- How to properly create table in plugin
- How to Show Category List With Corresponding Links?
- Is it possible for two WordPress plugins to share the same code base?
- Set page to draft on plugin deactivation
- Can one plugin activate another plugin via script?
- Script to replace default blogroll with links to my social media URLs
- Create a Plugin to Download Files from Web to Server
- My plugin creates custom widgets, How can I programatically add them to existing sidebar widget areas?
- How to deal with different jQuery versions?
- WP plugin repository didn’t parse readme.txt correctly
- How to show multiple instances of the WP125 Widget?
- Restore svn trunk of my plugin repository to the initial state?
- Can I attach a plugin via my add_filter callback contents?
- Is there any way to pass messages from a script to a redirect target in a hidden fashion?
- What should I pass for $needed_dirs when calling _unzip_file_pclzip (aka PclZip)?
- Anyone using unzip_file successfully? It uploads the zip but doesn’t extract it!
- Custom Path for a Plugin
- WP 3-way voting system: On to something! Please help!
- Why is the expected file not being deleted?
- How can the_excerpt (or equivalent) be called on a category description?