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
- Plugin Form Submission Best Practice
- What is the recommended way to create plugin administration forms?
- How to remove duplicate sub-menu name for top level menu items in a plugin?
- How to check WordPress website username and password is correct
- Fatal error: Call to undefined function plugin_dir_path()
- How to sync with plugins update after I have done manual optimizations?
- How to retrieve a value via get_option when the option_value is stored in a multi-dimensional array?
- Check spam in custom form – akismet
- Add Admin Menu Inside Construct or Init
- get plugin directory url
- WordPress cron running twice
- How to create thumbnail of different files?
- admin_notices not displaying in plugin
- Get Objects While Deleting term
- js/css updating when making a plugin
- Subscribe to author?
- Set page template programaticlly in plugin
- How to use output buffering in WordPress hooked functions?
- Plugin menu addition in multisite
- WordPress ajax doesn’t display object method on jQuery .change() function
- How to get Metabox custom field to show checked if value is updated using post meta query?
- Run a function when new image is uploaded in media library
- Using and saving custom dropdown boxes on user profiles
- get author of published post
- How to access all array values from do_action_ref_array()?
- Why does my settings form redirect to the homepage?
- How to register my code as a plugin
- Listing wordpress users with a search function
- dbdelta failing with error: “WordPress database error Table ‘wp_2_myPlugin’ already exists
- Update product prices from remote file
- Using wp_mail to send email?
- Which wp plugin can use Create, Edit and Delete Email address from WordPress Dashboard
- Limit get_next_post to posts from the same author
- Any way, hook to add content right before the “read more” link?
- How do I ensure I can loop through every enqueued script and CSS?
- Plugins Settings page not updating
- TinyMCE 4.7.11 – Enable hidden WordPress core plugins? (referencing a wp-includes from plugin.php)
- Enqueue scripts based on site.
- My enqueue admin style function doesn’t work because of ?=ver
- Use content filter on the post that is password-protected
- WordPress filter custom posts by multi terms of of a taxonomy
- PHP: Why does my code work in index.php but not a widget?
- Making plugin output customizable
- Return all roles, including custom roles
- Mapping multiple URLs to same page
- Loading jQuery library from WordPress admin
- get the queried_object of an url
- How to make a Template page to show the information of different things Shop and Product page?
- How to get recent one post from each category on home page?