Happening right now conditional

Home Forums Calendar Products Events Calendar PRO Happening right now conditional

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #45397
    Beth
    Participant

    Is there a way to have a conditional tag that shows a button on the single event page template if the event is already underway? I have already set up if (tribe_event_in_category('my-category-slug')) { /* Do something */ } which is really great. We live stream events in this category’s events and I would like to have a “watch live” button show up once the event is underway and have it change to “watch archive” once it passes. http://www.arbor.edu/event/chapel-jeff-shinabarger/

    #45495
    Jonah
    Participant

    Hi Peter,

    We don’t have a specific function for this but it’s a great idea and I would suggest requesting it here: http://tribe.uservoice.com/ – for now though you should be able to put something together using https://theeventscalendar.com/support/documentation/the-events-calendar-template-tags-date-functions/#functiontribe_get_start_date and comparing that against the current time which you can get with PHP.

    Does that help?

    #45542
    Beth
    Participant

    Yes. That gives me something to build around. Thanks!

    #45557
    Jonah
    Participant

    Sounds good Peter, let us know if there’s anything else you need help with.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Happening right now conditional’ is closed to new replies.