WordPress.org

Forums

Simple Events Calendar
Year wasn't showing, changed plugin php page to fix (2 posts)

  1. weblackey
    Member
    Posted 1 year ago #

    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/

  2. weblackey
    Member
    Posted 1 year ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Events Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.