Skip to main content
Agency Program 50% cashback. 10% commissions. Priority support. Built for growing agencies. 50% cashback for agencies Speak to the team Join free
What The File icon

What The File

v1.6.0
by Barry Kooij · 4.9 (879 reviews)

What The File is the best tool to find out what template parts are used to display the page you're currently viewing!

50K+ active installs Updated Aug 25, 2023 Tested to 6.3.5 Requires PHP 5.3
Try Demo Download
Pre-installed Ready in ~10s No card

About What The File

What The File is a WordPress plugin that shows you which file and template parts are being used to display the page you're currently viewing. You can also directly edit the file through the theme editor, although it's not recommended for major changes. The plugin supports BuddyPress and Roots Theme based themes.

Screenshots

What The File screenshot

Frequently asked questions

What is What The File?
What The File is a WordPress plugin that helps you identify which template parts are used to display the page you are currently viewing. It adds an option to your toolbar for this purpose.
Who is the author of What The File?
The author of What The File is Barry Kooij.
Does What The File support other platforms or themes?
Yes, What The File supports BuddyPress and Roots Theme based themes.
Can I edit files directly using What The File?
You can click the file name to directly edit it through the theme editor. However, the author does not recommend this for bigger changes.
How many active installations does What The File have?
What The File has 50,000+ active installations.

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.

Try other plugins

Really Simple SSL icon

Really Simple SSL

4.9 · 4M+ installs

The easiest way to improve security! Leverage your SSL certificate and protect your website visitors.