Support » Plugins and Hacks » [Resolved] [Plugin: Verite Timeline] Getting WordPress posts into Timeline

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

Viewing 15 replies - 1 through 15 (of 49 total)
  • Plugin Author Miguel Peixe


    The Timeline also work with JSON. You can use the JSON API plugin for WordPress and create a new controller following the example, see JSON tab here.

    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?


    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?

    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. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    Plugin Author Miguel Peixe


    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:

    You should paste this under /wp-content/plugins/json-api/controllers/ as timeline.php


    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


    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


    Soon we’ll have this integrated with the plugin, with more features and better management.

    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.

    Tried to do this but it gives me the endless “loading timeline” error

    I’m getting the same endless “loading timeline” error…

    Do you have an ETA on the integration with the plugin?

    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/”] appears on your page in the page editor. There are additional options but that seems to be the minimum

    @miguel… That was very helpful… Thank you very much.
    Now I’ve got a timeline with JSON working on WordPress 🙂

    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


    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?

    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/”]

    Please help me.

Viewing 15 replies - 1 through 15 (of 49 total)
  • The topic ‘[Resolved] [Plugin: Verite Timeline] Getting WordPress posts into Timeline’ is closed to new replies.