Support

Home Forums Events Calendar Add-on Multi-day event that spans months sometimes not showing up in second month

Multi-day event that spans months sometimes not showing up in second month

Posted: February 9, 2014 at 11:53 am

Viewing 2 reply threads


Cynthia Closkey

February 9, 2014 at 11:53 am

WP version 3.8.1
Event Espresso version 3.1.36.4.P
Event Espresso Calendar 2.2.2.p

This was just upgraded (which fixed an earlier problem with the multiday/multimonth event displaying as starting on the end date).

Calendar page here: http://www.theintelligenceacademy.net/courses/cyber-education/

This event starts 2/19/2014 and ends 3/5/2014:
http://www.theintelligenceacademy.net/courses/event-registration/?ee=8

It displays correctly on the February Calendar, but when you click to March the event isn’t visible. It should show for March 1 through 5.

There are start and end dates and times set. We just want to list this event on the calendar, not accept registrations for it, so we haven’t enabled the register option for this event (though it is enabled for other events).

Meanwhile though, this event, which also spans two months and doesn’t have registration enabled, does show up on both months.
http://www.theintelligenceacademy.net/courses/event-registration/?ee=10

The only difference I see is that the February ends on a Friday, while April ends on a Wednesday. Thus, you never see February and March on the same calendar page, but you do see April and May both at the same time. Maybe that’s related to the problem?


Josh

  • Support Staff

February 10, 2014 at 10:06 am

Hi Cynthia,

I think this issue stems from the way the query checks against the event’s start date. This is what’s on line 477 of the current calendar plugin version’s espresso-calendar.php file.

Currently there’s an AND:

$SQL .= " AND ( e.start_date >= %s AND e.start_date <= %s ) "; 

if that gets changed to an OR like this:

$SQL .= " AND ( e.start_date >= %s OR e.start_date <= %s ) "; 

It will display the remaining dates in March.


Cynthia Closkey

February 10, 2014 at 4:02 pm

Thank you very much. I changed that AND to OR, and the event is showing up on both months’ calendars now.

Thanks for the quick reply!

Viewing 2 reply threads

The support post ‘Multi-day event that spans months sometimes not showing up in second month’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso