What WordPress Template File Am I Viewing?

When developing and debugging WordPress themes, I am often in the position of being confused about exactly which php template file is loading on a given page.  To solve this problem, I have created a plugin that displays the path of the current page template file at the top of the page.  It is called, “What Template File Am I Viewing”.

The plugin is available via the normal WordPress plugin installer on your site.  Just click “Plugins”->”Add New” and then search for “what template file am i using” and install per normal.

Many many thanks to VegasGeek, who wrote the actual code that is being used in the plugin!

Toby Cryns

Toby Cryns is a freelance CTO, expert WordPress consultant, and teacher.

He offers free advice to improve your freelance biz.

He also publishes small droppings every now and then to twitter.com/tobycryns and twitter.com/themightymo

Follow Toby's contributions on Github and WP.org.