Forum Replies Created
-
AuthorPosts
-
Trevor
MemberI tried using:
set_query_var(‘eventCat’,6);
tribe_calendar_grid();I’m thinking I need to modify the table.php file, but I can’t figure out the best way to do that, and I’m not sure how to override that file.
Trevor
MemberYep, been looking through the KB and FAQ… This is all it lists for that function. It doesn’t appear to offer a way to pass any variables (like the category).
Calendar Grid (Display)
tribe_calendar_grid()
Display the full size grid calendar tableReturns
void
More Info
since: 2.0
uses: load_template()January 25, 2012 at 9:54 am in reply to: Trying to get "next upcoming event" but it's pulling wrong event… #14101Trevor
MemberYes I see that in the example functions you always declare global $post; and use setup_postdata(). I guess I didn’t realize that this was a requirement for the functions to work properly. Maybe make a note in the knowledge base that mentions they must be used with the global $post variable?
Trevor
MemberYep, the update fixed it. I had to recreate the events as well, but it’s working now.
January 23, 2012 at 10:03 pm in reply to: Trying to get "next upcoming event" but it's pulling wrong event… #13930Trevor
MemberOkay, I fixed it. In case others run into the same issue, I’ll post the solution.
Basically, recurring event occurrences have the same post ID, so if you pass an ID into functions like tribe_get_start_date() outside of the loop, you’ll get an unexpected result.
It works now if I set global $post, and then wp_reset_query() afterward, like so:
http://pastebin.com/BsYkidsSNot sure if this is expected behavior, but it works now.
January 23, 2012 at 9:46 pm in reply to: Trying to get "next upcoming event" but it's pulling wrong event… #13925Trevor
MemberOkay Jonah, it’s definitely not a conflict… it’s something with the fact that the next event is a recurring event. It pulls the next events just fine if it’s just a regular, one-off event, but if it is a recurring event, it pulls the event, but the DATE is incorrect…
See here: http://www.harvestpensacola.com/
The event is listed as “Growth Track 401 – Dec 23”.When if you look here: http://www.harvestpensacola.com/events/upcoming/
The event is correct, but the date should be Jan 29.It’s like it’s pulling the wrong occurrance of the recurring event.
January 23, 2012 at 9:36 pm in reply to: Trying to get "next upcoming event" but it's pulling wrong event… #13922Trevor
MemberHi Jonah,
Okay I will try using get_posts() to pull in the posts… how do I set the date to be after a certain date (or upcoming)?
January 23, 2012 at 4:36 pm in reply to: Trying to get "next upcoming event" but it's pulling wrong event… #13909Trevor
MemberThis guys seems to have a similar issue: http://wordpress.org/support/topic/plugin-the-events-calendar-the-next-three-events-in-the-widget?replies=3
Could it be that there’s no sort by for the tribe_get_events() function that I’m using?
January 23, 2012 at 11:13 am in reply to: Trying to get "next upcoming event" but it's pulling wrong event… #13875Trevor
MemberAny news yet? I really need to get this fixed quickly.
January 20, 2012 at 4:50 pm in reply to: Trying to get "next upcoming event" but it's pulling wrong event… #13706Trevor
MemberAnyone?
-
AuthorPosts
