wordpress JSONAPI introspector always limits number at 10?

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’ => … Read more

Problem with context in multisite – getting main site data in every blog (get_pages())

The way you are doing this is not correct. Two possibilities: 1) Create a Dashboard Widget to display the information For the Network Dashboard, but illustrates well: How to Display Network Post Count? Minimal widget: add_action(‘wp_dashboard_setup’, ‘wpse_60096_dashboard_widget’); function wpse_60096_dashboard_widget() { if( current_user_can( ‘activate_plugins’ ) ) wp_add_dashboard_widget( ‘wpse_60096’, ‘Site Pages’, ‘wpse_60096_add_widget_content’ ); } function wpse_60096_add_widget_content() { … Read more