What Template File am I Viewing?


  1. Theresa

    Really, really useful! Thank you so much for posting this!

  2. Lindsay Branscombe

    I always just look at the body class. The code outputs all of the info you need to know about how you are viewing that page, including page template. SOMETIMES I will just echo it onto the page instead of as a class on an HTML element, but still works the same.

Leave a Reply

Your email address will not be published. Required fields are marked *