For me, one of the minor annoyances with working with WordPress page templates is that you often have to look at a specific page’s edit screen to see what page template it has been assigned.
That is to say that there’s no way to get a global view of the pages and their associated templates.
In order to make it a bit easier, I wrote a quick plugin that makes it easy to see which page template is assigned to a given page on the All Pages screen in the WordPress dashboard.
WordPress Page Template Info
For those who are interested, you can view the source and download a copy of the plugin on GitHub.
Just as the plugin description reads:
This plugin displays the name of the template associated with each page on the ‘All Pages’ page.
The plugin was developed against 3.8-beta-1 of WordPress, and I’m planning to keep it updated with the most recent version of WordPress; however, there are also a couple of other things that I plan to do with the plugin, as well.
The Plugin in Action
Simple enough, isn’t it?
On the All Posts page, it renders the name of the template being used below the title of the page. This makes it much easier than having to drill down to an individual page to check the Page Template meta box to see which template has been used.
Personally, this has been something that’s been useful for me when working on larger sites than the example of, you know, the two pages listed above.
As the plugin denotes, this is only `0.1.0`. Over time, I’m hoping to use this particular plugin to test out some object-oriented programming techniques as they relate to WordPress plugin development.
Specifically, I’m interested in doing a better job of applying the SOLID principles and creating a class, say, specifically designed to register actions. I’m also interested in doing a better job of dependency injection, PHP documentation, and so on.
Regardless, the plugin’s available, and will be under development whenever I have a few minutes to spare on experimenting and improving it.