Title: Get Recent Posts
Last modified: August 22, 2016

---

# Get Recent Posts

 *  [bigswp](https://wordpress.org/support/users/bigswordpress/)
 * (@bigswordpress)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/get-recent-posts/)
 * I am trying to learn the API and have gotten all the way to the end but now what?
   Meaning I have been using the API to ‘Get Recent Posts’ from one Multisite to
   display on another Multisite. I see all the json code I have managed to figure
   out how to filter it by post amount, category, etc. but I will say it again NOW
   WHAT? How do I actually display any of this information on the web page? I am
   3 days into this now and can’t find a single Beginning to end tutorial. Any help
   would be appreciated.
 * [https://wordpress.org/plugins/json-rest-api/](https://wordpress.org/plugins/json-rest-api/)

Viewing 1 replies (of 1 total)

 *  [prionkor](https://wordpress.org/support/users/prionkor/)
 * (@prionkor)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/get-recent-posts/#post-5557118)
 * Once you get the JSON data you can just parse it to use on your application. 
   I don’t know if you are using php or js for data representation.
 * Below is documentation for to handle json with php
 * [http://php.net/manual/en/book.json.php](http://php.net/manual/en/book.json.php)
 * Very basic example
 *     ```
       <?php
           $json = {}; // data you got from the json api
           $posts = json_decode($json);
   
           foreach ($posts as $post){
               var_dump($post);
           }
       ?>
       ```
   
 * Hope it helps!

Viewing 1 replies (of 1 total)

The topic ‘Get Recent Posts’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/json-rest-api_2e3641.svg)
 * [WP REST API (WP API)](https://wordpress.org/plugins/json-rest-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-rest-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-rest-api/)
 * [Active Topics](https://wordpress.org/support/plugin/json-rest-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-rest-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-rest-api/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [prionkor](https://wordpress.org/support/users/prionkor/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/get-recent-posts/#post-5557118)
 * Status: not resolved