Title: [Plugin: Verite Timeline] Getting WordPress posts into Timeline
Last modified: August 20, 2016

---

# [Plugin: Verite Timeline] Getting WordPress posts into Timeline

 *  Resolved [hyperdude](https://wordpress.org/support/users/hyperdude/)
 * (@hyperdude)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-verite-timeline-getting-wordpress-posts-into-timeline/)
 * I am trying to get my posts to display in the timeline. Any ideas on how to do
   this?
 * [http://wordpress.org/extend/plugins/timeline-verite-shortcode/](http://wordpress.org/extend/plugins/timeline-verite-shortcode/)

Viewing 15 replies - 1 through 15 (of 49 total)

1 [2](https://wordpress.org/support/topic/plugin-verite-timeline-getting-wordpress-posts-into-timeline/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/plugin-verite-timeline-getting-wordpress-posts-into-timeline/page/3/?output_format=md)
[4](https://wordpress.org/support/topic/plugin-verite-timeline-getting-wordpress-posts-into-timeline/page/4/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-verite-timeline-getting-wordpress-posts-into-timeline/page/2/?output_format=md)

 *  Plugin Author [Miguel Peixe](https://wordpress.org/support/users/miguelpeixe/)
 * (@miguelpeixe)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-verite-timeline-getting-wordpress-posts-into-timeline/#post-2716911)
 * The Timeline also work with JSON. You can use the [JSON API](http://wordpress.org/extend/plugins/json-api/)
   plugin for WordPress and create a new controller following the example, [see JSON tab here](http://timeline.verite.co/#fileformat).
 *  Thread Starter [hyperdude](https://wordpress.org/support/users/hyperdude/)
 * (@hyperdude)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-verite-timeline-getting-wordpress-posts-into-timeline/#post-2716950)
 * OK, I have got JSON API Installed and kind of get how it is working. I don’t 
   know much about JSON.
 * So if I put this link in my shortcode will this work?
 * [http://mydomain/?json=1](http://mydomain/?json=1)
 *  Thread Starter [hyperdude](https://wordpress.org/support/users/hyperdude/)
 * (@hyperdude)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-verite-timeline-getting-wordpress-posts-into-timeline/#post-2716962)
 * Managed to create a new controller called Timeline. Now I just need to work out
   the code. Any help would be appreciated.
 * Would be cool to bundle a controller with the plugin to help other users. Is 
   this something planned for the next release?
 *  Thread Starter [hyperdude](https://wordpress.org/support/users/hyperdude/)
 * (@hyperdude)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-verite-timeline-getting-wordpress-posts-into-timeline/#post-2716963)
 * Slowly working my way through this. What I need to do is display the blog posts
   in the timeline:
 * _[334 lines of code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   The maximum number of lines of code that you can post in these forums is **ten
   lines**. Please use the [pastebin](http://wordpress.pastebin.com/)]_
 *  Plugin Author [Miguel Peixe](https://wordpress.org/support/users/miguelpeixe/)
 * (@miguelpeixe)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-verite-timeline-getting-wordpress-posts-into-timeline/#post-2716990)
 * Hey, I enjoyed the idea so I made this code to support the basic WordPress post
   data inside Timeline, using the JSON API plugin with a custom cotroller.
 * Here’s the code:
    [http://pastebin.com/SwbT2J9A](http://pastebin.com/SwbT2J9A)
 * You should paste this under **/wp-content/plugins/json-api/controllers/** as **
   timeline.php**
 * Usage:
    [http://example.com/api/timeline/category_posts/?category_id=123&post_type=timeline&amount=10&main_post_id=456](http://example.com/api/timeline/category_posts/?category_id=123&post_type=timeline&amount=10&main_post_id=456)
 * Default values:
    category_id = null post_type = ‘post’ amount = -1 (all posts)
   main_post_id = first post from query, ordered by date in ascending order (the
   main post should be an introduction to the timeline being viewed)
 * Content values can (and would be nice) be changed to support custom post meta
   for enhanced usage.
 * If you have any ideas to improve this code, let me know.
 *  Plugin Author [Miguel Peixe](https://wordpress.org/support/users/miguelpeixe/)
 * (@miguelpeixe)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-verite-timeline-getting-wordpress-posts-into-timeline/#post-2716991)
 * Oh, and the timeline shortcode should look like this:
 * `[timeline src="http://example.com/api/timeline/category_posts/?category_id=123"]`
 *  Plugin Author [Miguel Peixe](https://wordpress.org/support/users/miguelpeixe/)
 * (@miguelpeixe)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-verite-timeline-getting-wordpress-posts-into-timeline/#post-2716993)
 * Soon we’ll have this integrated with the plugin, with more features and better
   management.
 *  Thread Starter [hyperdude](https://wordpress.org/support/users/hyperdude/)
 * (@hyperdude)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-verite-timeline-getting-wordpress-posts-into-timeline/#post-2717016)
 * Very cool, I think this will be useful and very popular (Timelines are all the
   rage right now). I am going to give this a proper test over the weekend and will
   provide some more feedback for you.
 *  [wapak](https://wordpress.org/support/users/wapak/)
 * (@wapak)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-verite-timeline-getting-wordpress-posts-into-timeline/#post-2717077)
 * Tried to do this but it gives me the endless “loading timeline” error
 *  [nbw0318](https://wordpress.org/support/users/nbw0318/)
 * (@nbw0318)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-verite-timeline-getting-wordpress-posts-into-timeline/#post-2717080)
 * I’m getting the same endless “loading timeline” error…
 * Miguel,
    Do you have an ETA on the integration with the plugin?
 *  [Ben Dunkle](https://wordpress.org/support/users/empireoflight/)
 * (@empireoflight)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-verite-timeline-getting-wordpress-posts-into-timeline/#post-2717085)
 * If you get the loading timeline error, make sure:
    1. you pasted the timeline.
   php code above in your plugins directory 2. The shortcode [timeline src=”[http://example.com/api/timeline/category_posts/”%5D](http://example.com/api/timeline/category_posts/”%5D)
   appears on your page in the page editor. There are additional options but that
   seems to be the minimum
 *  [Nihad](https://wordpress.org/support/users/9had/)
 * (@9had)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-verite-timeline-getting-wordpress-posts-into-timeline/#post-2717087)
 * [@miguel](https://wordpress.org/support/users/miguel/)… That was very helpful…
   Thank you very much.
    Now I’ve got a timeline with JSON working on WordPress 
   🙂
 *  [underclass](https://wordpress.org/support/users/underclass/)
 * (@underclass)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-verite-timeline-getting-wordpress-posts-into-timeline/#post-2717090)
 * Thanks for this however I can only get the first slide to show, no text etc.
 * EDIT, working now added text excerpt but getting the 1:00 timestamp on the footer
 *  [kn1g](https://wordpress.org/support/users/kn1g/)
 * (@kn1g)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-verite-timeline-getting-wordpress-posts-into-timeline/#post-2717094)
 * hi,
 * it took me 2h to figure out, how this works… I’ve never heard of jason before.
   A short tutorial would have been nice and saved me a lot of time (I would make
   one. But i’ve currently no time. Perhaps in a few weeks if i still remember).
   
   Anyway **GREAT plugin**!
 * Is it possible to style the timeline via the shortcode? I’ve seen there is a “
   dark” theme in the css folder. Can i activate different themes in the shortcode?
 *  [rajindertpss](https://wordpress.org/support/users/rajindertpss/)
 * (@rajindertpss)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-verite-timeline-getting-wordpress-posts-into-timeline/#post-2717095)
 * Hi,
    I’m getting the “loading timeline” error… I have installed json API plugin
   and created timeline controller. But no help from this.
 * My shortcode is [timeline src=”[http://example.com/api/timeline/category_posts/”%5D](http://example.com/api/timeline/category_posts/”%5D)
 * Please help me.

Viewing 15 replies - 1 through 15 (of 49 total)

1 [2](https://wordpress.org/support/topic/plugin-verite-timeline-getting-wordpress-posts-into-timeline/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/plugin-verite-timeline-getting-wordpress-posts-into-timeline/page/3/?output_format=md)
[4](https://wordpress.org/support/topic/plugin-verite-timeline-getting-wordpress-posts-into-timeline/page/4/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-verite-timeline-getting-wordpress-posts-into-timeline/page/2/?output_format=md)

The topic ‘[Plugin: Verite Timeline] Getting WordPress posts into Timeline’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/timeline-verite-shortcode_eeeeee.
   svg)
 * [VéritéCo Timeline](https://wordpress.org/plugins/timeline-verite-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/timeline-verite-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/timeline-verite-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/timeline-verite-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/timeline-verite-shortcode/reviews/)

 * 49 replies
 * 16 participants
 * Last reply from: [mstaer](https://wordpress.org/support/users/mstaer/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/plugin-verite-timeline-getting-wordpress-posts-into-timeline/page/4/#post-2717139)
 * Status: resolved