I am using Advanced Slider on my homepage to display the Event Espresso events (EE4), and I need to hide expired events from display in the slider. Any thoughts on how to accomplish this? It doesn’t matter if I use Advanced Slider or another plugin – the client simply wants a slider with clickable images, event title(s), and a short description on the homepage scrolling through upcoming events.
Thanks Dean – As mentioned, I don’t necessarily need to use that plugin, I just need to make a slider work displaying active events (not expired events) for my client.
The optional Exclude setting in Advanced Slider doesn’t seem to be a valid solution, as the client would need to manually exclude events on an ongoing basis.
If you open up advanced-post-slider.php and look for where it starts the loop, you can modify the loop a bit so events that ended before today will not be included in the output. Some example code follows:
The support post ‘Hiding Expired Events From a Slider With EE4’ 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.