Recurring Events $post->ID is the same

Home Forums Calendar Products Events Calendar PRO Recurring Events $post->ID is the same

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #48960
    hoangker
    Participant

    Hi I am having issue with the ID of the post of a recurring event after I create it and set it as a recurring event – its the same $post->ID.

    I create the recurring event (recur by week) it generates n number of events up to the event end date. When I print out all recurring events on my site they all have the same $post->ID. Is there a way to print out unique ID that I can use to load up that specific recurring event? As of now all the $post->ID are the same and when I try to use the tribe function

    tribe_get_start_date($post->ID, true, ‘M j, Y’)

    I get the start date of the first instance of my recurring event.

    To reiterate I need a unique $post->ID for each recurring event.

    Thanks,

    Tin

    #49026
    Barry
    Member

    Hi Tin, all recurring instances share the same post ID as the ‘root’ event so you would need to think of an alternative approach here, such as loading by date.

    Alternatively, if you are happy working with the WordPress API you could extract the relevant post meta entry ID. That’s not the sort of thing we can help you with (nor can we guarantee that recurring event data will always be stored using the same system going forward) but it could give you a new avenue to explore 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Recurring Events $post->ID is the same’ is closed to new replies.