Remove Past Events from Upcoming Events Widget

Home Forums Calendar Products Events Calendar PRO Remove Past Events from Upcoming Events Widget

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #934158
    insitemodt
    Participant

    I just wanted to know if the “past events remaining listed” issue with the Upcoming Events Widget will be fixed in the next release? As Events end during the day, they are not removed until the following day. We have a lot of daily events but only want to posts a few on the home page to show what is coming, so we would prefer to not show events that have already past in this limited space. We do not want to remove the events from the entire calendar – just have them “expire” from the sidebar widget.

    #934721
    Geoff
    Member

    Hello there, Beth! Thanks for getting in touch and sorry you’re hitting some trouble here with how events are filtered in the list widget.

    I totally hear what you’re saying, but that’s unfortunately how the Upcoming Events widget is intended to function. However, perhaps you can give the workaround provided in this thread a try to see if it works for you.

    I do see a similar request for this feature over on our UserVoice page. If having more control over what displays in the Upcoming Events widget is something you’d like to see in a future release, I’d suggest adding your vote. 🙂

    Does this help answer your question? Please let me know.

    Cheers!
    Geoff

    #935098
    insitemodt
    Participant

    Thanks Geoff, but my issue is not with currently running/ongoing events. I want the widget/query to not display events that have already ended on the current day. (Example: A one-hour yoga class from 9-10 AM still displays at 2 PM when it is over and no longer available.) Sorry, I have very limited php database query coding experience, but from my other database experience, I thought there might be a way to add to the query “if event has not expired” based on the “day/time” of the “end date” / “end time” of each event. Is there a current work-around that I can implement to do this without removing current/ongoing events also?

    #935172
    Geoff
    Member

    Hi there, Beth!

    Yes, we’re on the same page and I understand that you’re hoping to exclude for events that have passed their time range from the Events List widget. I was hoping that the workaround suggested in the other thread would also handle the same sort of situation.

    Your best bet is to customize the pro/list-widget.php file to set up a query that specifically outputs the events you want. I’d suggest checking out our Themer’s Guide for a thorough overview of how template overrides work. You might also find this tutorial on the tribe_get_events() function handy as it provides a means for querying events.

    Sorry I don’t have more of a concrete solution to offer here, but I hope this helps give you a starting point.

    Cheers!
    Geoff

    #938129
    Geoff
    Member

    Hello Beth! Just checking in to see if you had any follow-up questions. Please let me know. 🙂

    Cheers!
    Geoff

    #940007
    Geoff
    Member

    Hey there, Beth! Since I haven’t heard from you in a couple of weeks, I’m going to go ahead and close this thread. Please feel free to start a new one if anything else comes up and we’d be happy to help you out there. 🙂

    Cheers!
    Geoff

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Remove Past Events from Upcoming Events Widget’ is closed to new replies.