How to show the current template WordPress is using

If you do any WordPress theme development you will need to edit the page templates very often. It’s easy to forget what template is currently in use as you’re staring at the page. A quick way to find out which one is being used is to add the following code to your functions.php file and header.php or footer.php…