Tribe_is… conditionals fail in version 5.12.3, so genesis integration fails
-
Since updating from version 5.12.2 to 5.12.3 my event archive views fail in Genesis framework child themes. I investigated in a dev env and noticed that the conditionals that normally return true now return false. In version 5.12.2 it still works, so there is a change that make the conditionals.
The code is based on code in the knowledgebase and I have used it for many years now:
https://theeventscalendar.com/knowledgebase/k/genesis-theme-framework-integration/basically it just hooks in the get_header en uses tribe conditionals to determine if the current page is a tec archive page.
I have tried if the conditionals return their expected value when I use hooks that are fired later than the get_header hook, but same result. Before it worked on the genesis_pre_get_option_site_layout hook and not anymore, and also on the genesis_before_loop hook the conditionals return false instead of true and since genesis theme isn’t able to determine the current page correctly the event list isn’t displayed in the standard theme template.
The default event template shows the events list correctly, although the layout is then not as adapted for the theme, but until now I could use the standard page template of the theme too. That is now blocked by the wrong response of the conditionals.
For instance in list view I expect
tribe_is_list_view()
to return true, but it returns false, and normally alsotribe_is_upcoming()
returns true, but is now returning false.tribe_is_event_query()
returns true, but isn’t specific enough for me to know I’m on an archive.Can you help? For now I’m stuck in version 5.12.2 or forced to use the default event template and use less optimal presentation. The genesis framework hasn’t changed, so I would expect no change from there. The installation with the problems are using the updated even views. Another still using the legacy view is still functioning as expected.
Thanks, Hans
- The topic ‘Tribe_is… conditionals fail in version 5.12.3, so genesis integration fails’ is closed to new replies.