[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?
https://www.ads-software.com/extend/plugins/timeline-verite-shortcode/
-
Hey Janay,
i am still figuring out how to do this.
There are two things i am struggling with:
First, i dont know why the date of the first post is ALWAYS (-1 Year/DAY/ whatever) and why the mainpost has the date “1957” no matter which value i give to the “startDate”. I found the following topics:
https://github.com/VeriteCo/TimelineJS/issues/100
https://github.com/VeriteCo/TimelineJS/issues/85
there it says, that the bug has been removed. But i still have these problems.
see: https://github.com/VeriteCo/TimelineJS/issues/288
Do you also have this bug? (I just visited your page and noticed that you also have this problem..)Second, i had the following ideas to get a kind of “main post” inbetween the other posts:
- Rearrange the main post and put it to the current date. Simultaniously display all past posts before this and all future posts behind it.
Problem: The main post is always displayed before all other posts - Disable/Remove the main post and set an post always to the current date.
Problem: i can not disable the main post (dont know how).
I am getting a d.gsx$titleslide is undefined error. Help?
I get this while trying to embed a Google Doc spreadsheet as a timeline through Verite timeline JS.
Any help is appreciated.
Thank you
@janay-
I seem to be having the same problem you were. The controller isn’t activated. Can you explain what you did to make that happen?
Unfortunately due to the project type and its stored info, no. However I can explain what I have done.
In wp-content/plugins/ i have the following:
/json-api
consists of activate.php
consists of Plugin Header Only (so it shows up to be activated)/json-api/controller
consists of timeline.php
consists of the reference code from pastebinI saw the instruction to check the https://mysite.com/api/timeline/category_posts to verify the controller is working. When I visit the url I get a page not found.
I have included it in both a post with shortcode and a page template with do_shortcode, both show the timeline box and say “Loading Timeline…”
I noticed Janay seemed to have the same problem but mentioned that the controller wasn’t activated. Is there something I need to add to my activate.php to get the controller active?
Thanks for your help!
Hmm, I don’t see activate.php anywhere in the json-api plugin on my install. What does that file do?
All it contains is this
<?php /* Plugin Name: JSON API Timeline Controller Plugin URI: none Description: Controller for Timeline Author: JS Version: 1 Author URI: License: GPL2 */
That way the plugin would appear on the list of installed ones so I could activate it. I have also tried it without it. In /wp-content/plugins I have
/json-api/controller/timeline.php
It contains the code from the pastebinchecking the controller as found above returns a page not found.
I’m sorry I’m having a problem with the timeline and WordPress, I hope someone can help me.
I have a timeline using Google Docs and it works fine at the https://timeline.verite.co/ using embed generator. I’m not using JSON. I’m having problem using the timeline with my WordPress site. I followed all the directions, installed the Verite plugin and activated it, but cannot figure how to insert my timeline. The little ‘t’ icon on top of the editing area of the posts just returns a blank (white) page and there is nothing in there to select. I don’t understand where I have to put the short-code or what exactly to include in it. here is my embed code from Verite website:
[timeline height=’100%’ font=’Bevan-PotanoSans’ maptype=’toner’ lang=’en’ src=’https://docs.google.com/spreadsheet/pub?key=0Alu8J1H6boVzdHp1aHBudC1mSlZFWDFKTjg0YlFFOXc&output=html’ start_at_slide=’1′ ]
Can someone please guide me and show how exactly how I must proceed. Do I edit the actual plugin file, timeline-verite-shortcode/verite-timeline.php? if so where in there I put the short code? and what should it be if I’m using the Google Doc?
Is there a sample code I can follow? I’ve been trying this for days and not succeeding. I’m truly grateful for any advice to solve this.
@jsing
Hi,
Yes I had the same problem cause I didn’t see I had to activate Jason.In WP, under settings in the left menu you should have a JSON API line (settings). When you click on it you should see your controllers. You need to Activate Timeline Controller.
That’s what I have done and then it did work for me.Check again https://mysite.com/api/timeline/category_posts with your own site’s name and it should show you a list of results…
Tell us if it did work
Thanks
JanayDid you try to create a post/page and copied this in it? :
[timeline height=’100%’ font=’Bevan-PotanoSans’ maptype=’toner’ lang=’en’ src=’https://docs.google.com/spreadsheet/pub?key=0Alu8J1H6boVzdHp1aHBudC1mSlZFWDFKTjg0YlFFOXc&output=html’ start_at_slide=’1′ ]Just where you should type some body text for your post/page…
JanayIf you’re using google docs to create the posts, DO NOT use this plugin. In fact, I’d avoid it altogether until it gets updated.
Just paste the code verite generates for you on your page.php file in your theme folder. If you only want it to show up on a certain page, you can use is_page conditional; let me know and I can help you write that.
@jsing, I still can’t find activate.php in the json-api plugin folder-see this screenshot of my directory:@janay and @emireofflight
I got it working thanks for the help. I’m going to blame it on lack of sleep, but I missed the part about installing the JSON-API plugin first.
Somehow that didn’t register, so I was basically making a new plugin. FAIL!
I may have to come back to you for some ACF integration after I look over your Pastebin entries.
So for the slow like myself:
1. Install JSON-API plugin from repository
2. Add timeline.php from earlier post to the controller directory inside the plugin
3. Go to settings-> JSON-API
4.Activate timeline controller
5.Insert shortcode or template.Thanks again.
@janay and @empireoflight
Many thanks for your suggestions; I solved the problem after reading your description. I see that the plug-in doesn’t work well yet with Google Docs. But I was able to just embed the link as you’ve suggested and I deleted the plug-in.
It’s working well now. very happy!
Happy Holidays
@jsing and @metrowave
Happy it did work for you!!! Yes it’s tricky the json api plugin part…
I was stuck there too for a while XD
@empireoflight
Did you success in having past and futur posts of main post in timeline? I’ve been so busy with the dance cies and events I had’nt time to look further…Happy Holidays everyone!!!
- Rearrange the main post and put it to the current date. Simultaniously display all past posts before this and all future posts behind it.
- The topic ‘[Plugin: Verite Timeline] Getting WordPress posts into Timeline’ is closed to new replies.