WordPress.org

Plugin Directory

JSON Cache Plugin

A WordPress plugin to generate JSON file from a wordpress database.

  1. Upload json-cache to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. go to JSON CACHE and click Generate Cached Content (make sure your data folder is writeable)

Getting all posts

$json_cache = new JSONCache(); $jsonposts = $json_cache->getJsonData('posts');

Getting all pages

$json_cache = new JSONCache(); $jsonpages = $json_cache->getJsonData('pages');

Getting a specific post

$json_cache = new JSONCache(); $jsonpost = $json_cache->getJsonData('post_1');

Settings

you can also add a custom image size: $json_cache = new JSONCache(); $json_cache->add_image_size( 'thibautdelille-full-width');

Requires: 3.0.1 or higher
Compatible up to: 3.4.2
Last Updated: 2014-3-6
Active Installs: 10+

Ratings

0 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.