Wordpress: 4.0.1
EE 3.1.36.6.P with Recurring events plugin & Recurring Events Dropdown Template added
What I’m trying to do: I’m trying to add a Recurring dropdown to a WP page, but its showing me events that have already occurred in the past. Here is the code I’m using:
I believe that its displaying these expired events because (from what I can tell) the “show_expired” option is based on the Registration Start/End dates, not the Event Start/End dates.
But would there be a way to change this to the event end date without having to have manual registration end dates on each recurring event?
Looks like it is controlled by line 176 in plugins/espresso-custom-templates/index.php. Try changing it to: $sql .= $show_expired == 'false' ? " AND (e.start_date >= '" . date('Y-m-d') . "') " : '';
The support post ‘Ideas to limit past Events using Recurring Events Dropdown Template?’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.