Skip to content

Instantly share code, notes, and snippets.

@caseymhunt
Created July 25, 2013 23:06
Show Gist options
  • Select an option

  • Save caseymhunt/6084614 to your computer and use it in GitHub Desktop.

Select an option

Save caseymhunt/6084614 to your computer and use it in GitHub Desktop.
Wordpress - strictly for debugging; used in functions.php of your theme- this will display the path/filename of any current page's template file in use.
<?php
add_action('wp_head', 'show_template');
function show_template() {
global $template;
print_r($template);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment