• 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.
    http://cuttingedgewoodworks.com/wp/?page_id=48

    =====
    Changed simple-events-calendar.php

    Year 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>';

    https://wordpress.org/plugins/simple-events-calendar/

Viewing 1 replies (of 1 total)
  • Thread Starter weblackey

    (@weblackey)

    I forgot to say, I still don’t have the year showing on single day events.

    The only way I could see to create such a post was to put the same date in the start and end fields. I’m sure that has something to do with it. Did I do that right?

    Again, if someone knows how to solve the problem, I’d appreciate that!

Viewing 1 replies (of 1 total)
  • The topic ‘Year wasn't showing, changed plugin php page to fix’ is closed to new replies.