Displaying Recurrence Rule's start time

Home Forums Calendar Products Events Calendar PRO Displaying Recurrence Rule's start time

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1023699
    John
    Participant

    Hello,

    We have changed several templates which are using tribe_get_start_time to get the start time of events. It seems that events that have a custom recurrence rule set don’t pull in the start time. Events without a recurrence rule set and a normal start time set (one day/one time event) have no issues.

    Is there different code to pull the start time when there’s a recurrence rule?

    Thanks!

    #1023948
    Geoff
    Member

    Hi David,

    Good question! Yes, you should be able to retrieve all of the start dates and times for a recurring events using tribe_get_recurrence_start_dates().

    Let me know if that helps do the trick!

    Cheers,
    Geoff

    #1024370
    John
    Participant

    Geoff,

    That gets me part of the way there. I need to only pull the time for that specific occurrence though. I’m unsure how I could track that was the XXth occurrence and use that to get the correct time from the array.

    Thanks!

    #1024775
    Geoff
    Member

    Hey David,

    In testing this a little further, it looks like tribe_get_start_time does work with recurring instances, at least right out of the box. You should be able to use that and grab the correct time by supplying the event ID.

    Have you made some other customizations that might be interfering? I can’t guarantee I can fix it, but I’d be happy to take a look if you want to share a more complete sample of your code.

    Thanks!
    Geoff

    #1075579
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Displaying Recurrence Rule's start time’ is closed to new replies.