Why does running get_the_excerpt() when generating JSON file take 28 seconds vs. 599 milliseconds without it?

The problem will likely be a (very slow) callback that is attached to your get_the_excerpt() function. To inspect the attached callbacks, just inspect the global: // Best hooked to `shutdown` echo ‘<pre>’.var_export( $GLOBALS[‘wp_filters’][‘get_the_excerpt’], true ).'</pre>’; Then get rid of all those callbacks.

Have WordPress generate a JSON of the content

After pondering your question some I am guessing you mean to generate actual physical JSON file in filesystem to use as data source? That would certainly be unorthodox in WP development. Typically in WP you try to minimize disk access, since it is more likely to be a bottleneck in general. Doing file writes is … Read more

Can’t connect to my WordPress website using Windows 8 app?

I took a look at the WordPress app for Windows 8. It looks as though it is strictly built for WordPress.com, not self-hosted blogs. The apps available for Android, iOS, and Windows Phone on the other hand actually support both self-hosted installations and WordPress.com. Even though you integrated some WordPress.com services into your blog via … Read more

Create post using JSON api plugin

I’ve worked on JSON API for a iPhone app development for a WordPress site to post photos but not using JSON API Plugin, But the basic procedure would be: As you need to be logged in to publish your post, the communication is going to be two way 1. Author writes a article as draft … Read more

Hook Into the_content Filter For JSON API Only [closed]

Your problem is not as much filtering content, as content assuming too much about context and doing things that content shouldn’t really. You don’t read the book where text decides to color itself, it’s decided for it. I would suggest to consider decoupling content from active context-specific functionality. You can still use shortcodes, but instead … Read more

creating shortcode to pull json array

As per documentation on wp_remote_get() it doesn’t return you just the body of requested resource. Its return will be either the array of data or WP_Error object on failure. The simplest snippet to get to the body would be: $json = wp_remote_retrieve_body( wp_remote_get( $url ) ); PS it’s kinda weird to be doing this in … Read more