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.
Nice function. I’ll try to add it into a plugin so I can turn it on/off for debugging.
This is very useful, thanks! Was a plugin ever made?
I haven’t made one out of it yet.
This is a huge help, thanks!
Thanks, that was really helpful!
How can i find out what a third-party is using for their template?
this domain has a wordpress template that i want to obtain. I was wondering if it is possible to somehow find out which template they are using. If you can help, please do.
Looks like Optimize by WooThemes.
There is a bug in your code.
The logic is – if they are not logged in **OR** they do not have your user id, then return.
Also, I find using the “What the File” plugin works better than this.
You are correct Valerio.
I noticed this a long time ago and updated my local file but forgot to update the post. The code above has been updated.
Thanks, that was more than helpful. Adding it to my arsenal