Skip to content

Instantly share code, notes, and snippets.

@mindcube
Created January 25, 2013 15:19
Show Gist options
  • Save mindcube/4635168 to your computer and use it in GitHub Desktop.
Save mindcube/4635168 to your computer and use it in GitHub Desktop.
PHP: Insert WordPress template file name and path
// For debugging - show template file
add_action('wp_head', 'show_template');
function show_template() {
global $template;
?><!-- TEMPLATE: <?php print_r($template);?>--><?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment