Posted: September 12, 2013 at 2:56 pm
Topic example: How do we do that? According to past topics related to my issue, there should be an “Events Expire on Reg End Date” option in my General Settings. For the life of me, I can’t find it. Has it been removed in the latest update or am I looking in the wrong place? I’ve read and tried the following solution: WP 3.6.1 |
|
|
It’s because the class has already started. To make it display up to the end date, go up to line 147 of event_list.php and change it to be: $sql .= $show_expired == 'false' ? " AND (e.end_date >= '" . date('Y-m-d') . "' OR e.event_status = 'O' OR e.registration_end >= '" . date('Y-m-d') . "') " : ''; in addition to the change from Josh’s post. |
Okay, I’ve replaced the code you’ve indicated along with Josh’s fix. The expected events are still not appearing. I’m still curious about the “Events Expire on Reg End Date” option – does that still exist? And thank you! |
|
September 13, 2013 at 10:37 am And as a possible fallout from the code adjustment, EE is having trouble with the event list display on a page with an event beginning today: |
|
|
Hi William, Sorry for the late response. I checked the two code edits that Josh and Sidney provided and they seem to work just fine. It may be that there was an error in adding them in or something. Is it possible to get FTP access so I can download the file and check for you? If you have already sent them, please resend as we dont hold onto that data. Is it possible to get your login details in order to look into this? If so, please send them via https://eventespresso.com/send-login-details/ NOTE: login details need to be Admin level and FTP details are appreciated. |
|
Sorry I forgot to answer this. That option was removed several versions ago (maybe 6 months ago in real time). |
September 17, 2013 at 12:38 pm Login info has been sent! And thanks for the sanity check on on the deprecated option. I felt like I was the only person who couldn’t see it! 🙂 |
|
|
Hi, The event_list.php had Sidneys code, but had not uncommented out the line that Josh said. As such I did that. Can you check to see if that has worked correctly as I cannot see which events should and should not be there. |
Hi Dean – This would be a good example page to work with: If we can get the code to work, the following event should appear: Though I’m thinking now…. That’s not just an extended event, it’s a weekly recurring event. Could it be that because the recurring event plugin breaks apart repeating occurrence into their own events that the plugin is looking at my master event – the very first occurrence – and seeing that it has happened already so it’s not even looking at any other events in the series? Ugh… I think I just answered my own question… |
|
|
Hi, It shouldn’t be the case as each event has its own reg and event dates, regardless of how they were generated. However, the event you linked is already showing up on the event list you linked to, so it appears to be working by your criteria. |
September 19, 2013 at 11:09 am In the end, I’ve done a workaround that requires manual adjustments to make current events visible. I can live with it for a while, though I’m still curious as to why I couldn’t get your suggested fixes to work. I love when things can be automated. 🙂 Thanks again for your help! I’ll keep an eye out for anyone else wrestling with the same problem and if they come up with a more elegant solution than I did. |
|
|
OK, and no problem. I am not sure why those fixes were not working for you either, they worked just fine on my test installs. Probably something simple that has been overlooked. |
The support post ‘Expire at End of Event, not Registration’ 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.