Banner for Json Cache
A WordPress plugin to generate JSON file from a wordpress database. Wordpress Tutorial
Noted That:
  • To install correctly this json-cache.zip .
  • Fisrt Download the json-cache.zip to your computer
  • Extract/Open json-cache.zip to Your Computer.
  • Then, Find readme.txt file inside json-cache.zip and Open readme.txt .
  • Now, Read the Requirements of this plugin. Which Wordpress Version and PHP Version are required to run this Plugin in Your Wordpress Site.
  • Then, Follow the Tips Below.
Start the Tips:

Step-1 : Download " json-cache.zip " to Your Local Computer.

Step-2 : Then, Login to your " yourdomain.com/wp-admin " Dashboard.

Login to Wordpress Json Cache

Step-3 : Then, Click on " Plugins " + " Add New " from left Side Menu of Dashboard.

Go to Plugin Install Json Cache

Step-4 : Now, Click on " Upload Plugin " button.

Click Upload Button Json Cache

Step-5 : Now, Browse " json-cache.zip " Downloaded plugin from your computer, Where you downloaded " json-cache.zip " According to Step – 1 Above then, click on " Install Now "

Upload Plugin Json Cache

Step-6 : Now, Click on " Active Plugin "

Activate Json Cache

Step-7 : Then, See left Side Menu. " Json Cache " folder is added on left Side Menu. Now, Click on " Json Cache " folder.

Noted that: If you do not see " Json Cache " folder on left Side Menu then, see at left Side Menu " Settings " or " Tools ".

Step-8 : Now you configure yourself oR Watch video tutorial below about Json Cache Configurations and Settings or How to work " Json Cache " in your WordPress site.

oR

After Activated Plugin According to Step-6 then,

  1. Go to " Plugins " + " Installed Plugin " from Wordpress Admin Panel Leftside Menu.
  2. or Direct go to: https://yourdomain/wp-admin/plugins.php
  3. Then, Find " JSON Cache Plugin " Activated Plugin from Plugin List.
  4. Then, Click on " Settings " from Plugin that is JSON Cache Plugin
  5. Now, Edit/Add/Config the setting and Click on " Save Changes " button,
WP Plugin Setting



Guide
  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’);


Name