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!
More posts from themightymo.com
How to fix the “Warning: Class ‘Automattic\WooCommerce\StoreApi\Routes” issue in WordPress + WooCommerce
Today when I visited a customer’s website, I saw an error similar to this: etc. After trying all sorts of troubleshooting, the solution ended up being simple. Download a fresh copy of WooCommerce from WordPress.org and FTP it up to the server, replacing the existing WooCommerce files. Problem solved. Isn’t that nice? Many thanks to…
How to CSS rainbow text
Here’s a bit of plain CSS that’ll create rainbow text on your WordPress site or anywhere, really.
How to Restore a Deleted Amazon S3 Bucket
I ran into a rather serious issue recently: a human on my team (me) intentionally (but accidentally) deleted an Amazon S3 bucket that was serving files to a WordPress site. The solution to the problem follows: Cry when you realize you cannot restore a deleted S3 bucket. Search your computer, your co-workers’ computers, your former…