Home › Forums › Welcome! › Pre-Sales Questions › Conditional logic for recurring events
- This topic has 1 reply, 2 voices, and was last updated 5 years, 8 months ago by Support Droid.
-
AuthorPosts
-
July 8, 2018 at 11:13 am #1570291Glenton SamuelsGuest
I have a client who’s church broadcasts a live video every Sunday. On the church’s website, there’s a live video player that’s being displayed while the event is live and when it’s finished, a countdown timer is shown counting down to the next event the following week.
Right now I’m doing this manually with the Date/Time picker and a dropdown from Advanced Custom Fields Pro to make that logic work.
I want to know this scenario is possible to automate this process with The Events Calendar Pro.
So say I have a recurring weekly event happening every Sunday from 9 AM to 1 PM with The Events Calendar. Could I do something like the following?
[If the weekly event is now]
Show the live player here
[Otherwise, if the event has passed]
Show the countdown here
[endif]
Is this possible?
July 9, 2018 at 3:12 am #1570527AndrasKeymasterHi Glen,
Thanks for reaching out to us!
That is an awesome question!
I believe that should be possible with some custom development.
You would need to create a template override for the single event template, and add the ‘if … else’ block there.
And you can do a comparison between the current date/time and tribe_event_is_on_date.
If that function doesn’t suit you than feel free to search our documentation.
Hope this helps.
Cheers,
AndrasJuly 31, 2018 at 9:35 am #1586770Support DroidKeymasterHey 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 ‘Conditional logic for recurring events’ is closed to new replies.