Forum Replies Created
-
AuthorPosts
-
Malcolm GreenParticipant
Thanks Nico,
using ‘upcoming’ for eventDisplay didn’t work (tried that a long time ago). Further, I don’t have this code in my functions, it’s right in the template for the homepage (is there a problem with that?).
I can verify the timezones are correct and coordinated.
Simply stumped as to why this doesn’t return anything other than the Breakfast no matter the time of day.
For development purposes, I’ve even added this code to return the date and time and the ‘next’ event start and end time and it still shows breakfast timings (even when they are now in the past?!).
echo '<br />Current time '; echo date( 'Y-m-d g:i' ); echo '<br />next event - '; echo tribe_get_start_date(); echo ' to '; echo tribe_get_end_date();
Suggestions….?
Malcolm GreenParticipantThanks Nico,
That’s correct. I have set up three meals (Breakfast, Lunch and Dinner). Breakfast runs from 7-11am. Lunch from 11:05 am to 3pm and Dinner from 3:05pm until 8pm. These are all recurring events.
I am trying to get the specific mealtime event to return based not only on the day but the hour as well. The only one that seems to return is Breakfast.
Not sure why it shouldn’t change based on the time?
Please advise…
-
AuthorPosts