tribe_get_events and reoccuring events

Home Forums Calendar Products Events Calendar PRO tribe_get_events and reoccuring events

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #67629
    web2market
    Participant

    Hi,

    Have an issue whereby reoccuring events are displayed incorrectly when using tribe_get_events(). Any reoccuing event appears to use the details from the first occurrence of that event on the page, rather than their own details.

    Plugins disabled and theme switched to 2011.

    Thanks,
    Mark

    #67757
    Barry
    Member

    Hi Mark,

    Can you share your code? If so, please use a service like Pastebin or Gist rather than posting code directly in the forum.

    Thanks!

    #67785
    web2market
    Participant

    Hi Barry,
    Here you go: http://pastebin.com/GCt4kEAi

    #67802
    Barry
    Member

    Thanks! Can you:

    A) Uncomment the setup_postdata() call
    B) Within the loop, instead of explicitly passing the post ID set it to null instead. Example:

    echo tribe_get_start_date($post->ID, true, 'l F jS, Y');

    Try changing the above/any other similar entries to:

    echo tribe_get_start_date(null, true, 'l F jS, Y');

    Does that help?

    #67807
    web2market
    Participant

    Yup, that’s resolved the date. However, the permalink () links through to the wrong item?
    Thanks,

    #67808
    web2market
    Participant

    S’ok, swapped it out for tribe_event_link(), working ok. Thanks for your help.

    #68039
    Barry
    Member

    No problem at all, happy you got there 🙂

    #981085
    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 8 posts - 1 through 8 (of 8 total)
  • The topic ‘tribe_get_events and reoccuring events’ is closed to new replies.