Home › Forums › Ticket Products › Community Tickets › Remove events if start date has passed
- This topic has 7 replies, 2 voices, and was last updated 8 years, 9 months ago by
adformation.
-
AuthorPosts
-
June 13, 2017 at 3:57 am #1297102
adformation
ParticipantHi All,
Can I, in any way, remove events which start_date has passed?
I want to show a list of events, but not the events whos startdate has passed, because you can’t sign up for those anyways.Please let me know if I can do this in any way.
Best regards
Aris KuckovicJune 14, 2017 at 4:24 pm #1298182Barry
MemberHi Aris,
This plugin (it’s in the regular zip format so you can upload it to your site via the Add New Plugin admin screen) should run a task in the background approximately every 24hrs that removes past events.
That’s slightly different to what you specified insofar as it should only remove events where the end date and not just the start date are in the past, but perhaps it will work for you regardless … and of course you are free to tweak it further to fit your needs.
Hope that helps!
June 15, 2017 at 12:06 am #1298320adformation
ParticipantHi Barry,
Thanks a lot.
My problem is, that some events have a duration over a month – and when startdate is passed, you can no longer signup for the event. I need to hide/remove the events, if they’re already started. Can the plugin do that – or do I need to tweak it further?Best regards
ArisJune 15, 2017 at 11:53 am #1298687Barry
MemberAhh, I see!
Well yes one way would be alter the plugin: have it query for all events, ordered by start date, and delete those where the start date is in the past. If you want to explore doing that, feel free (and if you need help, remember there are a bunch of great devs out there who can help).
Alternatively, what are you using to power the sign up process? Could you make a tweak to remove the sign up form on events where the start date is in the past, or something of that order?
June 16, 2017 at 5:59 am #1299043adformation
ParticipantHi Barry,
I’ve created a form in Contact Form 7 – and then sending URL parameters for every event.
I think the best solution would be to query for all events, and sort out those who has passed start-date 🙂
I will post a solution here as soon as I’m done 🙂Best regards
ArisJune 16, 2017 at 1:46 pm #1299367Barry
MemberAwesome! If you’re happy to share that would be great and potentially very useful to others doing similar stuff, too 🙂
July 8, 2017 at 9:35 am #1317932Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Remove events if start date has passed’ is closed to new replies.
