Home › Forums › Calendar Products › Events Calendar PRO › Upcoming Events List Duplicated Date for Recurring Events
- This topic has 4 replies, 2 voices, and was last updated 12 years ago by
Barry.
-
AuthorPosts
-
March 24, 2014 at 7:07 am #122333
invex09
ParticipantI’m writing my own sidebar “widget” to just display a simple unordered list for upcoming events in the sidebar for a particular venue. The code I wrote uses the get_tribe_events() function and is based on an example found here for getting events for a particular venue: https://theeventscalendar.com/support/documentation/the-events-calendar-template-tags-general-functions/#functiontribe_get_events
The issue I’m having is that multiple instances of recurring events all display the same date. I’m utilizing the tribe_get_start_date() function. Here is an example to checkout what I’m talking about: http://invexdesign.com/gpd-2014/wp/facilities-parks/glenview-ice-center/
Thanks in advance for any help!
March 24, 2014 at 8:56 pm #122763Barry
MemberHi invex09,
Do remember that some resources like that one are not intended for use with our current builds, hence the warning at the top:
Please note that all documentation below is for The Events Calendar 2.0.1 through 2.0.11. Documentation for version 3.0 and beyond is available on our main documentation page.
In this case might it be easier to use the existing list widget, tweaking it as appropriate to meet your needs? We’d love to know why it isn’t fitting your requirements.
Thanks!
April 2, 2014 at 10:23 am #126983invex09
ParticipantThanks of the reply Barry, sorry I was on vacation for a week. I see now that the documentation I was using was for older builds. Are there similar tutorials and walk-throughs for the event functions for the 3.0 builds? I don’t see any tutorials for using tribe_get_events() with examples similar to the previous link I posted (i.e. getting events for one venue, getting events up to 30 days out, etc.).
Basically the issue I’m having is that when I use tribe_get_events(), recurring events are displayed in the right order chronologically, but they all have the same date displayed, the date of the first recurrence. For example, if I have an event from 6-8 that is recurring daily for 3 days starting April 3rd, in my template when I use tribe_get_events() to pull the upcoming events, the following display:
-> April 3: My Event Title
-> April 3: My Event Title
-> April 3: My Event TitleSo it displays the recurring events individually as it should, they just don’t display the correct date. If I go into settings and check the box for Recurring Event Instances so it only shows the first one, then it removes the duplicates, but I want each to display, I just want it to display the correct day and link to the correct recurring instance.
Any help would be greatly appreciated, please let me know if you need anything else. Thanks!
April 3, 2014 at 8:21 am #127472Barry
MemberThe first thing to do would be to ensure you are using our latest builds as recurrence changed (internally) in some significant ways as of the 3.5 release – can you try that and confirm if you are still having difficulties. Please also note we are pretty limited in terms of how much support we can offer for customization work, but if you can share what you are doing (via Pastebin or similar) we might be able to offer a push in the right direction 🙂
Are there similar tutorials and walk-throughs for the event functions for the 3.0 builds? I don’t see any tutorials for using tribe_get_events() with examples similar to the previous link I posted
Our tutorials page lists most of our currently valid tutorial content: we are aiming to build and improve on this and indeed our documentation generally – but for now what you see is what you get on that front and there really is a lot in there already, so taking the time even to look through material that might not seem relevant to what you are trying to achieve could pay dividends as it may expose techniques you can reuse for your own customization.
Thanks!
April 17, 2014 at 6:59 am #135007Barry
MemberThis thread’s not seen much activity for the last couple of weeks so I’ll go ahead and close it. Of course if you still need help with this or any other issue please don’t hesitate to create a new thread (or threads) and one of the team will be only too happy to help. Thanks!
-
AuthorPosts
- The topic ‘Upcoming Events List Duplicated Date for Recurring Events’ is closed to new replies.
