Remove events if start date has passed

Home Forums Ticket Products Community Tickets Remove events if start date has passed

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1297102
    adformation
    Participant

    Hi 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 Kuckovic

    #1298182
    Barry
    Member

    Hi 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!

    #1298320
    adformation
    Participant

    Hi 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
    Aris

    #1298687
    Barry
    Member

    Ahh, 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?

    #1299043
    adformation
    Participant

    Hi 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
    Aris

    #1299367
    Barry
    Member

    Awesome! If you’re happy to share that would be great and potentially very useful to others doing similar stuff, too 🙂

    #1317932
    Support Droid
    Keymaster

    Hey 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

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Remove events if start date has passed’ is closed to new replies.