Bug in Eventlist shortcode
I believe there is a bug in the Eventlist shortcode.
Running WordPress 3.5.1 and Calendar version 1.0.4.
Example to reproduce the bug: create 5 or 6 events, starting in a previous week to “now”, each repeating at weekly intervals. Then add a new TEST event starting “tomorrow”. With a shortcode of [[eventlist end=”+5 Weeks” limit=5] the TEST event will not show, although it IS present in the calendar.
Increase the LIMIT to 10 and the TEST event will now show in the correct date order.
Please, authors, fix this bug, which is due to a problem in function db_query_events()
I have found a temporary fix is to increase the LIMIT for the SQL query (only) by hacking the code, but of course this is not good practice, and this is offered with NO guarantee, as I am not the author!
hack: to ajax-event-calendar.php at line 793
So the hacked code should look like this
$limit = $limit *4; // temp bugfix add this to increase limit here $events = $this->db_query_events($start, $end, $categories, $excluded, $limit); $limit = intval($limit/4); // temp bugfix add this to restore limit
- The topic ‘Bug in Eventlist shortcode’ is closed to new replies.