Forum Replies Created
-
AuthorPosts
-
December 21, 2015 at 11:54 am in reply to: Getting tribe_get_events() to work with timezones #1044827
James
ParticipantAny help with this please?
December 19, 2015 at 6:49 am in reply to: getting tribe_get_events() to work with timezones #1044122James
ParticipantWrong thread, reposted in the events calendar pro forum. Please delete this thread.
December 18, 2015 at 8:58 pm in reply to: Problem with tribe_get_events() showing events earlier than its start_date #1043897James
ParticipantThanks Brook I’ve gotten it to work.
Your explanation that tribe_get_events() presupposes the current event was what I needed. This should be documented somewhere! Saying that it retrieves upcoming events, without that being precisely the case, can be misleading and lead people to believe the plugin isn’t working correctly, when it is.
Thanks once again!
November 17, 2015 at 11:07 am in reply to: Problem with tribe_get_events() showing events earlier than its start_date #1027115James
ParticipantOkay so, the most typical use case lists upcoming and current events? If that use case works 100% as expected, then maybe the best case scenario is to talk with our customer and nudge the expectations a bit.
To solve the use case as I initially outlined, how would I exclude events by moving my start_date after their end? Can this be done without SQL?
Thank you for all your help!
November 17, 2015 at 9:09 am in reply to: Problem with tribe_get_events() showing events earlier than its start_date #1027073James
ParticipantI find it hard to imagine this is a rare use case. Maybe I’m missing something very obvious?
My only goal is simply to output a list of upcoming events. I take the start_date as strtotime(now), and retrieve everything from that on.
How can this be a rare use case?
Can you suggest some easy way you’d implement this usecase without writing heavy SQL? I’ve purchased this plugin to perform this very simple use case.
November 13, 2015 at 12:09 pm in reply to: Problem with tribe_get_events() showing events earlier than its start_date #1025443James
ParticipantThanks Brook!
What would you say is the best way to precisely limit events which the loop picks up? Should I add an end_date which is 5 minutes after start_date?
In other words going back to my example,
15-11-13 21:05 15-11-13 21:00How do I run the loop which starts at 21:05, and doesn’t pick up an event starting at 21:00?
-
AuthorPosts
