Marking Event as Canceled

Home Forums Calendar Products Events Calendar PRO Marking Event as Canceled

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #889413
    Joshua Hay
    Participant

    Hey guys,

    Is there a way I could mark an event as canceled through the admin panel (even an iffy workaround would work here for me) that I could use conditional login on in templates? We want to keep canceled events up but hide the ticket sales section (WooTickets). Using an event category won’t work for me because I am displaying categories in the FilterBar on a general events page.

    Any help would be greatly appreciated.

    #889537
    George
    Participant

    Hey @hellowebsites,

    Just to be clear, in your post here do you mean “conditional logic” instead of “conditional login“? I only ask because login functionality and different admin/permissions-related things change the scope of this issue a lot.

    But if all you mean is conditional logic to use in your templates, then yes, there are several options for marking an event as “canceled”. There isn’t an “official” way to do it in the admin, like you asked, but there are many options of the “iffy workaround” variety that you mentioned – one of the simplest ways would be using a custom field to mark events as canceled. You can learn about custom fields, and how to check for them in your theme, here → http://codex.wordpress.org/Custom_Fields . You should be able to use custom meta like that to not have to actually delete events, but write custom code to filter them out of whatever public-facing views and templates you’d like. Let me know if this helps at all or if you have any follow-up questions here!

    Thanks,
    George

    #890865
    Joshua Hay
    Participant

    That should actually work, thank you. I should have been able to figure that out myself but it’s been a hefty week. Thanks for the help.

    #891035
    George
    Participant

    No worries Joshua! I hope that it does, in fact, help you to play around with that…just be sure to make backups of all your custom code – and ideally of your site and database, too, before you make any customizations on your site. It can never hurt to have backups 🙂

    Best of luck with your projects!
    George

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Marking Event as Canceled’ is closed to new replies.