Working
-
Plugin is not working at first so i need to dig in to the code
Edit line 65 of template.php in /includes/
<?php while ($timelinr_query->have_posts()) : $timelinr_query->the_post(); $timelineDate = get_post_meta($post->ID, 'timelineDate', 'true'); //i decided to use substr since i only need the Year, you can configure this on your likings just check the php time format //the get_date_format() is not working in latest version of wp so we're changing it to get_the_date() //$date = $this->get_date_format($timelineDate, $atts['dateformat']); $date = substr(get_the_date($timelineDate, $atts['Y']), 0, 4); echo '<li><a href="#">'.$date.'</a></li>'; endwhile;?>
Also you need to supply the shortcode coz the default settings is not working well.
[timelinr arrowKeys="true" category="Milestone" orientation="horizontal"]
- The topic ‘Working’ is closed to new replies.