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');


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: 2 years ago
Active Installs: 10+


0 out of 5 stars


Got something to say? Need help?


Not enough data

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