Home › Forums › Calendar Products › Events Calendar PRO › Remove Past Events from Upcoming Events Widget
- This topic has 5 replies, 2 voices, and was last updated 11 years, 2 months ago by
Geoff.
-
AuthorPosts
-
January 17, 2015 at 3:24 pm #934158
insitemodt
ParticipantI 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.
January 19, 2015 at 8:49 am #934721Geoff
MemberHello 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!
GeoffJanuary 20, 2015 at 2:53 am #935098insitemodt
ParticipantThanks 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?
January 20, 2015 at 7:18 am #935172Geoff
MemberHi 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!
GeoffJanuary 27, 2015 at 9:07 am #938129Geoff
MemberHello Beth! Just checking in to see if you had any follow-up questions. Please let me know. 🙂
Cheers!
GeoffFebruary 4, 2015 at 9:57 am #940007Geoff
MemberHey 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 -
AuthorPosts
- The topic ‘Remove Past Events from Upcoming Events Widget’ is closed to new replies.
