Getting all instances for recurring events

Home Forums Calendar Products Events Calendar PRO Getting all instances for recurring events

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1299560
    Dan Feeley
    Participant

    I was following this example to get all the instances for a recurring event and it works perfectly everywhere:

    • Functions.php – works
    • Custom plugin – works
    • EC Template file – works

    HOWEVER, if I select “Recurring event Instances” (Show only the first instance of each recurring event (only affects list-style views).) in the settings. It no longer works everywhere.

    • Functions.php – still works
    • Custom plugin – only returns one instance
    • EC Template file – only returns one instance

    I am trying to use this in a custom plugin (and we do use that setting), is there a better way to get all the recurring instances?

    #1300373
    Andras
    Keymaster

    Hello Dan,

    Thanks for reaching out!

    We have a function that you might be able to use: tribe_get_recurrence_start_dates()

    Will this help you move forward or do you need more help?

    Cheers,
    Andras

    #1300395
    Dan Feeley
    Participant

    It looks like that will do the job, thanks.

    #1300716
    Andras
    Keymaster

    Cool! Let me know if you need any more info, I will leave the topic open for now.

    Note, if there is no movement here for 3-4 weeks, then it will be automatically closed.

    It would be great if you could share your solution afterwards. I’m sure it could be helpful for others as well.

    Cheers,
    Andras

    #1320073
    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 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Getting all instances for recurring events’ is closed to new replies.