Created
July 25, 2013 23:06
-
-
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.
This file contains hidden or 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
| <?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