VéritéCo Timeline
[resolved] [Plugin: Verite Timeline] Getting WordPress posts into Timeline (50 posts)

  1. Janay
    Posted 3 years ago #

    @kn1g and @Empireoflight
    Yes that's what I've done all the night (I could retrieve ACF date and text field easily with get_post_meta but checkbox options were a stop) and finally have found the solution use get_field instead of get_post_meta() or get_post_custom() to have the correct detailed output of my custom checkbox field (not Array). Would have be cool to use those checkbox values as timeline tag but for now I'm pretty satisfied and tired. It's a first for me with JSON and with API...
    Here's my code if anybody needs it : http://pastebin.com/s3sEcw7M

    Now I only need like kn1g to find how to set a
    Start Date (ex: main post -1 year) - Main Post Date - End Date (ex: main post +1 year) as I need to show past season AND current or future season events and have a main post introducing current season...
    If it's not possible at least beeing able to start from end event would do it...
    If somebody has a start I'm eager to see it.

  2. kn1g
    Posted 3 years ago #

    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:
    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).
  3. ppirro
    Posted 3 years ago #

  4. ppirro
    Posted 3 years ago #

    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

  5. jsing
    Posted 3 years ago #


    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?

  6. Ben Dunkle
    Posted 3 years ago #

    @ppirro and @jsing - can you post a link?

  7. jsing
    Posted 3 years ago #

    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:

    consists of activate.php
    consists of Plugin Header Only (so it shows up to be activated)

    consists of timeline.php
    consists of the reference code from pastebin

    I saw the instruction to check the http://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!

  8. Ben Dunkle
    Posted 3 years ago #

    Hmm, I don't see activate.php anywhere in the json-api plugin on my install. What does that file do?

  9. jsing
    Posted 3 years ago #

    All it contains is this

    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

    It contains the code from the pastebin

    checking the controller as found above returns a page not found.

  10. metrowave
    Posted 3 years ago #

    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 http://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.

  11. Janay
    Posted 3 years ago #

    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 http://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

  12. Janay
    Posted 3 years ago #


    Did 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...

  13. Ben Dunkle
    Posted 3 years ago #

    If 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:

  14. jsing
    Posted 3 years ago #

    @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.

  15. metrowave
    Posted 3 years ago #

    @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

  16. Janay
    Posted 3 years ago #

    @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
    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!!!

  17. cre8plus
    Posted 3 years ago #

    Hi all,

    I am using this plugin as well. I have a same question as @Janay, how can I make the Title as a link?

    Moreover, I have plugged the timeline.php but post_excerpt doesn't show anything unless I typed excerpt manually into a post.

    Any Ideas?


  18. steacha
    Posted 2 years ago #

    This plugin is great, but I am running into 2 little problems which I hope someone can help me solve:

    1) My post headlines are not shown.

    2) My post publish dates are not shown

    3) My post contents are not appearing on the timeline either

    4) How do I make the timeline start at the end (or current event)? start_at_end="true" seems to have no effect

    Only the featured images for each post are shown. Also, is it possible to have the headlines link to the actual post itself? I'm in a little bit of a time rush, it would be cool and much appreciated if someone could assist me with this quickly. :)

  19. mstaer
    Posted 2 years ago #

    I just installed this plugin, hoping it would be really simple to get a timeline into my page...

    How do I actually get the timeline to show up on a page?

    Do I still need to do all the manual work outlined on the first page of this thread, or has the plugin been updated and will handle all that for me?

    Thanks for your help.

  20. mstaer
    Posted 2 years ago #

    What I am confused about is the difference between the generator and the plugin's WordPress interface. I have created posts using the plugin, but when I click to view them, I get a not found message, and going to website.com/timeline/ produces nothing either.

    What do I have to do to create a TimelineJS page?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • VéritéCo Timeline
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic