Year wasn't showing, changed plugin php page to fix
-
I know this is absolutely not best practice, but this plugin works great and after wasting 2 hours on trying to make The Events Calendar work for my simple needs, I just started playing with the core file.
I wanted to put this out there as an example, and just in case someone out there has had the same problem and found a proper way to fix it… That would obviously be better.
I saw that the developer hasn’t been on the forum for six months, and couldn’t find another post with the solution. I hope this plugin isn’t being abandoned!
Site is in temporary directory, so it may be moved soon. After that it will get pretty links.
https://cuttingedgewoodworks.com/wp/?page_id=48=====
Changed simple-events-calendar.phpYear was not displaying, fixed it thus…
line 825
was:$evt_time = $start_time . ' - <abbr class="dtend" title="'.date('Y-m-d',$event['event_end']).'T'.date('H:i',$event['event_end']).$tz.'">'. strftime(DATE ." ".TIME,$event['event_end']) .'</abbr>';
changed to:
$evt_time = $start_time . ' - <abbr class="dtend" title="'.date('Y-m-d',$event['event_end']).'T'.date('H:i',$event['event_end']).$tz.'">'. strftime(DATE ." ".YEAR." ".TIME,$event['event_end']) .'</abbr>';
- The topic ‘Year wasn't showing, changed plugin php page to fix’ is closed to new replies.