Created
December 18, 2012 03:36
-
-
Save afragen/4324770 to your computer and use it in GitHub Desktop.
Add this to your theme's functions.php file. It will display the name of your Events Calendar template file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'wp_head', 'template_name' ); | |
function template_name() { | |
if ( class_exists( 'TribeEvents' ) ) { | |
if ( tribe_is_month() && !is_tax() ) { // The Main Calendar Page | |
$template = TribeEvents::getOption('tribeEventsTemplate'); | |
print_r( $template ); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment