I am trying to get my posts to display in the timeline. Any ideas on how to do this?
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?
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
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.
Oh, and the timeline shortcode should look like this:
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?
- The topic ‘[Plugin: Verite Timeline] Getting WordPress posts into Timeline’ is closed to new replies.