Reoccuring event shows multiple times in loop

Home Forums Calendar Products Events Calendar PRO Reoccuring event shows multiple times in loop

Viewing 15 posts - 16 through 30 (of 30 total)
  • Author
    Posts
  • #18274
    Michael
    Participant

    @Marty: Brilliant, thank you!

    #18339
    Rob
    Member

    Thanks for sharing your results, Marty. They were useful to Michael and will serve useful to anyone else who comes with a similar request down the road. Cheers.

    #18952
    Simon
    Participant

    Thanks for sharing this, but I’m having trouble seeing where @Marty’s code would be applied.
    Here’s the code I’m working with: http://pastebin.com/XxvJWHfZ
    Where would I insert @Marty’s code?

    #19223
    Rob
    Member

    Hey Simon: sorry that this thread has slipped through the cracks until now. Are you still having issues here or did you get this figured out? Let us know and we’ll follow-up as needed.

    #19329
    Marty
    Participant

    I’m not sure the solution I posted above is bullet proof. I haven’t gone too deep into it yet, but it seems that there are cases when instances of an event may become separated from the others and given their own post ID.

    Perhaps someone can shed more light on this?

    #19351
    Rob
    Member

    Hey Marty, thanks for the heads up. Any pattern to the events that are being separated out?

    #19478
    Marty
    Participant

    Hi. Yes, a new ID is created anytime you make a change that does not affect every recurrence. For example, if you make a change to the 2nd instance of a recurring event and choose “Future Events” when saving, that instance (and all future instances) will be given a different ID than the 1st entry. Same if you were to choose “This Event Only” — that instance would be given a unique ID.

    Moving forward I’m going to pick up the trail left by Cliff, above.

    #19549
    Rob
    Member

    Ah, gotcha. There are certain changes made to events that are always going to break them out of the recurrence pattern – changing the event name, for example. Could that be the cause here?

    #20642
    Kenny
    Member

    Hi all, I’m also trying to show just one instance of a recurring event in the loop and I’m not sure how to apply Marty’s code to mine: http://pastebin.com/YXfLLg7x

    I’d love some guidance here, thanks!

    #20643
    Kenny
    Member

    Hi all, I’m also trying to show just one instance of a recurring event in the loop and I’m not sure how to apply Marty\’s code to mine: http://pastebin.com/YXfLLg7x

    I’d love some guidance here, thanks!

    #20647
    Rob
    Member

    Hey Kenny. Thanks for the note here; no guarantees we’ll be able to assist as we didn’t write that code to begin with, but let me see whether our dev Jonah can point you in the right direction when he hits the forums next. Stay tuned!

    #20671
    Kenny
    Member

    Understood Rob thanks; my fingers are crossed.

    #20677
    Kenny
    Member

    UPDATE: I figured it out. Here is how I was able to use Marty’s code to display just one instance of a recurring event:

    First, don’t use tribe_get_events(). Use instead WP_Query().
    After that it was easy, here’s the code:
    http://pastebin.com/kpaEUDZA

    Thanks Marty!

    #20742
    Jonah
    Participant

    Hey Kenny,

    Looks good! Thanks for working this out, I’m sure it will help others 🙂 Let me know if there’s anything else I can do here.

    Cheers,
    – Jonah

    #977117
    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 15 posts - 16 through 30 (of 30 total)
  • The topic ‘Reoccuring event shows multiple times in loop’ is closed to new replies.