Lately I’ve been using this very small little code snippet that’s helped out a ton! It outputs which template your currently using on the particular page your on using the global
What WordPress template file
: WordPress template in admin bar
I just modified it again to output the current template into the admin_bar if it’s showing and I’d like to share it with you.
This is all you need to view which template file from your theme you’re using. You should now know if your using
index.php or some random file.