Advertisement
BakerMan

Woo Canvas 5.3 (fix excerpt issue for event pages)

Aug 8th, 2013
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1. /**
  2.  * This fix may be required with The Events Calendar 3.0.3 and Canvas 5.3.0  where
  3.  * the default page template is in use.
  4.  *
  5.  * See also: https://gist.github.com/jazbek/5959855
  6.  * which may solve a separate issue that may also impact with this sort of setup.
  7.  */
  8. function tribe_woo_default_page_tpl_fix() {
  9.     if ( ! tribe_is_event_query()) return;
  10.     $GLOBALS['wp_query']->is_singular = true;
  11. }
  12.  
  13. add_action('woo_post_before', 'tribe_woo_default_page_tpl_fix');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement