Skip to content

Instantly share code, notes, and snippets.

@thecodepoetry
Created December 9, 2014 09:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thecodepoetry/42de80e09e38258b54e5 to your computer and use it in GitHub Desktop.
Save thecodepoetry/42de80e09e38258b54e5 to your computer and use it in GitHub Desktop.
Compatibility fix for tribe event calender plugin
add_action( 'get_header', 'tribe_event_fix', 10 );
function tribe_event_fix() {
if ( 'tribe_events' == get_post_type() ) {
$config = Presscore_Config::get_instance();
presscore_config_base_init();
}
}
@thecodepoetry
Copy link
Author

Use this in your functions.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment