Created
December 22, 2013 12:42
-
-
Save colorqualia/8082068 to your computer and use it in GitHub Desktop.
WordPress Template File Name
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 | |
| global $template; | |
| $template_name = basename($template, '.php'); | |
| echo $template_name,".php"; | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment