Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * This fix may be required with The Events Calendar 3.0.3 and Canvas 5.3.0 where
- * the default page template is in use.
- *
- * See also: https://gist.github.com/jazbek/5959855
- * which may solve a separate issue that may also impact with this sort of setup.
- */
- function tribe_woo_default_page_tpl_fix() {
- if ( ! tribe_is_event_query()) return;
- $GLOBALS['wp_query']->is_singular = true;
- }
- add_action('woo_post_before', 'tribe_woo_default_page_tpl_fix');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement