WordPress.org

Ready to get started?Download WordPress

Forums

full-page calendar and EC 3.1 Beta plugin (2 posts)

  1. brittanie
    Member
    Posted 7 years ago #

    Way back with EventCalendar3.0, I was able to use this thread to build a full-page event calendar.

    I just upgraded to EC3.1, a significant rewrite, and the code has changed so much! I still have the full-page calendar, but now I can't get the post/event titles to show up on the page. If you hover over the date of an event the name of the event shows, but I'd like it to appear in the box for that day and be linkable to the post about that event.

    I'm no good with PHP except when following directions, so hopefully someone can take a look at this and tell me what's changed. I've also posted to the plugin's site but haven't heard a response yet.

    See the calendar here.

  2. emilyalison
    Member
    Posted 6 years ago #

    Not sure if anyone is still watching this thread, but I think I have something that will help. I also recently upgraded Event Calendar to 3.1 and was using the full page hack from the thread mentioned. The following instructions will make events on a day in the calendar separated by <hr> tags as in the original hack.

    1. Open the file day.php inside the eventcalendar3 folder. At the end, insert the following code between lines 50 and 51:
      function get_titles_hr()
        {
          return implode('<hr />',$this->titles);
        }
      .
    2. Then, open template-functions.php, also in the eventcalendar3 folder. Change line 237 from this:
      echo ">$date->day_num</a>";
      to this:
      echo ">$date->day_num<hr />".$calendar_days[$day_id]->get_titles_hr()."</a>";

    Hope this helps someone!

Topic Closed

This topic has been closed to new replies.

About this Topic