Discover, trust, install: FAIR 1.0 is here
What The File
Version: 1.6.0
Description
What The File adds an option to your toolbar showing what file and template parts are used to display the page you’re currently viewing.
You can click the file name to directly edit it through the theme editor, though I don’t recommend this for bigger changes.
What The File supports BuddyPress and Roots Theme based themes.
More information can be found here.
Looking for a great related posts plugin for WordPress?
Another plugin I’ve built, that I’m very proud of is Related Posts for WordPress. Related Posts for WordPress offers you the ability to link related posts to each other with just 1 click! And it’s 100% free! Check it out on the WordPress repository.
Installation
- Upload
what-the-file
to the/wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
Faq
In the toolbar you will find the “What The File” option. Hovering this option will display the currently used template file, clicking the template file name will allow you to edit the template file with the WordPress file editor. Please note that some BuddyPress files can’t be edited in the WordPress editor.
You have to be an Administrator to see the “What The File” option.
What The File works supports starts at PHP 5.3 and is tested on every major release up until PHP 8.1.
Yes it does.
Yes it does.
Glad to hear I could help you! You can thank me in various ways, please see my donation page to find out more.
Reviews
FANTASTIC DEVELOPER TOOL!
By ferplie on November 30, 2024
This plugin is GREAT for finding out which templates are being loaded on a page. If you are using a child theme, this plugin is a MUST have!
Great plugin
By Web Assembler (WebAssembler) on September 25, 2024
This plugin is really helpful for theme development when you're unfamiliar with the codebase. It quickly lets you know what the template is - a real time saver.
Cool plugin works well
By chris@designwave.co.za on July 24, 2024
Cool plugin works well so far
Muito bom.
By alumigroup on July 22, 2024
Atende as espectativas
excellent plugin
By buzibuzi on July 7, 2024
excellent plugin
Essential timesaver
By patareco on May 29, 2024
Especailly when editing or doing maintenance in sites with themes and structures you are unfamiliar with, this plugin will give you at a glance all the files being used in each page!
Usefull
By jmsilone (jmsilcom) on March 19, 2024
Very usefull
good & handle plugin
By alejandroye on January 26, 2024
good & handle plugin
very helpful
By davidany on January 8, 2024
as new wordpress dev, this made learning framework much easier
Useful Plugin
By anonymoussage on December 12, 2023
Good plugin that does exactly what it's advertised to do. Helped me debug an issue with my template files not being applied correctly.
Changelog
1.6.0: September 19, 2022
- Feature: Now correctly working with the wp_body_open tag. Full template part support is back.
- Tweak: Used proper add_site_option argument count. props @szepeviktor
- Tweak: Optimized file editing allowed function. props @szepeviktor
- Tweak: Change template_include priority from 1000 to PHP_INT_MAX for wider support. props @greenshady
- Tweak: Version and meta update.
1.5.4: October 8, 2017
- Version and meta update.
1.5.3: May 2, 2016
- Appended an extra check for the Sage starter theme, props remyvv.
1.5.2
- Fixed a CSS bug with admin bar.
1.5.1
- Fixed a bug where some themes make all images display block.
1.5.0
- Only add edit link if direct file editing is allowed. Props szepeviktor
- Wrapped initiation in hooks and split frontend and admin code.
- Removed use of create_function.
- Various code optimizations.
1.4.1
- Fixed wrongly aligned arrow in MP6 – props remyvv.
- Template parts are now correctly shown in child themes – props remyvv.
- Code style change.
1.4.0
- Fixed a template part bug, props remyvv
- Code style change
1.3.2
- Plugin now check if file exists in child theme or parent theme.
1.3.1
- Editing files directly through the theme editor now supports child themes.
1.3.0
- Added template part support.
1.2.1
- Improved the admin panel and administrator role check.
1.2.0
- Added BuddyPress support.
- Added WordPress.org review notice.
- Fixed admin check.
- Small code changes and refactoring.
- Extended GPL license.
1.1.2
- Fixed admin url bug caused when WordPress is installed in a subdirectory.
1.1.1
- Small meta information changes.
1.1.0
- Added Roots Theme support.
- Added WordPress 3.5.1 support.
- Meta information changed.
1.0.3
- Added WordPress 3.5 support.
- Small meta information changes.
1.0.2
- Fixed incorrect url when theme directory name differs from theme name.
1.0.1
- Changed the way the plugin initializes.
- Moved CSS from file to inline CSS.