Home › Forums › Calendar Products › Events Calendar PRO › tribe_get_events show only upcoming events
- This topic has 12 replies, 5 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
July 15, 2013 at 10:06 am #55234RichParticipant
Hey All – we are using tribe_get_events to show a list of upcoming events, but it is showing past events: theparentshandbook.com (bottom right). We are using this snippet of code:
https://gist.github.com/jrstaatsiii/6001599#file-tri-be-event-list
what is the best way to set this up so that it only shows future events?
July 16, 2013 at 7:47 am #55412JonahParticipantHi Rich,
Try changing ‘eventDisplay’ to ‘upcoming’
– Jonah
July 16, 2013 at 6:45 pm #55610RichParticipantHey Jonah – I made that update, and it definitely changed the events shown, but it appears to be showing old recurring events from last month.
July 17, 2013 at 2:02 pm #55760JonahParticipantHi Rich,
Hmmm, its working ok for me using your same code. Make sure to try deactivating all other plugins to make sure no other plugin is conflicting with ours. Can you provide me with some information on the old events that are showing so I can try to recreate things on my end?
Thanks,
JonahJuly 17, 2013 at 4:49 pm #55789RichParticipanthere is the site in staging with all plugins deactivated minus ACF, and the flexible content addon which is required for this element to show up:
July 18, 2013 at 9:57 am #55895JonahParticipantHi Rich,
So where are the events on this page? Can you provide me with some information on the old events that are showing so I can try to recreate things on my end?
Thanks,
JonahJuly 18, 2013 at 10:13 am #55899RichParticipantThe events are near the bottom on the right underneath “Upcoming Events”: http://handbook.staging.wpengine.com/ — All of the events listed are past except the last. Is that what you are asking? -Rich
July 18, 2013 at 11:17 am #55914JonahParticipantHi Rich,
I see it now, thanks. This is strange, the code works fine for me (I don’t see any past events) so it must be some conflict somewhere. I would suggest deactivating all other plugins first to see if any other plugin is causing an issue with our query. If that doesn’t work I would suggest taking a look at any other custom queries on the page. Do you have any? If that doesn’t work either, it could be a theme conflict issue or a conflict with something the theme is spitting out. What theme are you running?
– Jonah
August 1, 2013 at 10:30 am #58282RichParticipantHey Jonah – I’m sorry for the delay on this, i’ve been pulled in so many directions, it’s hard to keep up. I think i narrowed down the issue. Now it’s determining whether or not the issue is my fault, or something with the plugin.
If you look at the events list on this page: http://www.theparentshandbook.com/ you’ll see that everything looks as you’d expect. And, if you click on a link to a single / one off event, it works perfect. However, if you notice an event that is a recurring event, in our case, Vail Farmer’s Market and Hot Summer Nights, the date is correct, but if you click on the event to go to it’s page, it is actually going to the original event for that recurring profile, not that instance of the recurring profile. When you recreate this, are you using recurring events, and if so, are you experiencing the same thing?Thanks so much!
August 5, 2013 at 4:51 pm #58931BarryMemberHi Rich,
Sorry in turn for the further delay on our end.
Sadly Jonah has left the team 🙁 and so I’m going to jump in here – what I want to note though is that there is probably a limit to how far we can help with this since it is after all a custom development issue (and right now the reality is we’re really pressed with support requests).
A couple of ideas, though, in no particular order:
* Could you try setting eventDisplay to custom
* Can you try using tribe_get_event_link() instead of the_permalink() to render the linkAugust 6, 2013 at 12:47 pm #59136RichParticipanttribe_get_event_link() was the answer. thank you for the support, above and beyond. It is much appreciated. -Rich
August 6, 2013 at 3:46 pm #59172LeahMemberAwesome! Thanks for letting us know Rich.
July 7, 2015 at 6:27 am #979768Support DroidKeymasterThis 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 ‘tribe_get_events show only upcoming events’ is closed to new replies.