Home › Forums › Calendar Products › Events Calendar PRO › Reoccuring event shows multiple times in loop
- This topic has 29 replies, 9 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
April 25, 2012 at 12:31 pm #18274
Michael
Participant@Marty: Brilliant, thank you!
April 26, 2012 at 3:28 pm #18339Rob
MemberThanks 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.
May 9, 2012 at 12:17 pm #18952Simon
ParticipantThanks 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?May 15, 2012 at 3:08 pm #19223Rob
MemberHey 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.
May 17, 2012 at 12:50 pm #19329Marty
ParticipantI’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?
May 17, 2012 at 2:57 pm #19351Rob
MemberHey Marty, thanks for the heads up. Any pattern to the events that are being separated out?
May 21, 2012 at 2:14 pm #19478Marty
ParticipantHi. 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.
May 22, 2012 at 12:11 pm #19549Rob
MemberAh, 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?
June 13, 2012 at 6:11 pm #20642Kenny
MemberHi 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!
June 13, 2012 at 6:11 pm #20643Kenny
MemberHi 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!
June 13, 2012 at 7:08 pm #20647Rob
MemberHey 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!
June 14, 2012 at 9:24 am #20671Kenny
MemberUnderstood Rob thanks; my fingers are crossed.
June 14, 2012 at 1:08 pm #20677Kenny
MemberUPDATE: 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/kpaEUDZAThanks Marty!
June 17, 2012 at 7:49 pm #20742Jonah
ParticipantHey 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,
– JonahJuly 7, 2015 at 6:21 am #977117Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Reoccuring event shows multiple times in loop’ is closed to new replies.
