Recurring Events Display Same Date

Home Forums Calendar Products Events Calendar PRO Recurring Events Display Same Date

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #64245
    webdesign309
    Participant

    The recurring events on our website display the same date when we try to pull the recurring events. We have played around with this for quite some time trying to figure out the solution to the problem. Our code is as follows: http://pastebin.com/fLAgMurD.
    And here is what display: http://imgur.com/BhHquTB.
    The event shown is a recurring event that is supposed to happen once weekly. Any ideas on a work around for this problem? I checked the forums but was unable to find something with a similar issue.

    #64650
    webdesign309
    Participant

    Any ideas on this one. Has anyone run into the same problem as we have?

    #64655
    Barry
    Member

    Hi webdesign309 – sorry for the delay.

    Recurring event instances share the same post ID, so explicitly setting it (you’re passing in $post->ID as the first parameter of tribe_get_start_date()) has the effect of telling The Events Calendar to look at the first or ‘base’ event in the sequence.

    However, since it looks like you’re correctly setting things up with setup_postdata(), can you pass null as the first parameter? Then The Events Calendar can magically determine which instance you are referring to 🙂

    Hope that helps!

    #64691
    webdesign309
    Participant

    Worked like a charm thanks!!!

    #64694
    Barry
    Member

    Excellent, happy to help 🙂

    #980647
    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 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Recurring Events Display Same Date’ is closed to new replies.