Start date(s) for recurring events

Home Forums Calendar Products Events Calendar PRO Start date(s) for recurring events

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1250819
    Joshua
    Participant

    Hello,

    This is kind of a follow-up to this thread: https://theeventscalendar.com/support/forums/topic/event-custom-meta-fields-for-wp_query/#post-1232502

    While I got that working for one-time events, when I try to display recurring events using either _EventStartDate or tribe_get_start_date($post, false, $format = 'M' ); it defaults to showing the *first* date of the recurring events.

    Using a custom wp_query or using tribe_get_events(); how can I display the start dates of one-time events along with the individual dates of recurring events?

    Example:

    Mar 12 My One-Time Event

    Mar 17 First Instance of Recurring Event

    Mar 20 Another One-Time Event

    Mar 24 Second Instance of Recurring Event

    Mar 31 Third Instance of Recurring Event

    Using _EventStartDate will return March 17 for all instances of the recurring event so how can I get the individual dates?

    Thanks!

    #1251557
    Hunter
    Moderator

    Hi and welcome back,

    We’re a little limited with these types of support requests, but my first hunch would be to use the post_id when using tribe_get_events. I’d also explore the Technical Docs related to recurring data, more specifically tribe_get_recurrence_start_dates. Straight from that source:

    array tribe_get_recurrence_start_dates ( int $post_id = null )

    Sorry again I can’t do more in this instance but please let me know if you’re able to get things squared away. Cheers!

    #1262121
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Start date(s) for recurring events’ is closed to new replies.