WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What are the critical files a theme MUST have to be a WordPress theme and validate properly?

share|improve this question
up vote 2 down vote accepted


The bare minimum required is your index.php file and style.CSS file. Those two files alone are technically enough to run your entire theme. It's highly unlikely that you'll rely on those two alone.

The above link gives you an in-depth look at both the minimum and recommended requirements.

For example I run one theme with an index.php, functions.php, style.css and a loop.php and templates.php file. It's a complete custom job that relies on the heavy use of filters to create a modular way of delivering content with a minimal setup. You won't encounter themes like this very often, but it does illustrate the possibilities and power of Wordpress theming which don't always have to follow the norm.

Themes intended for release at the wordpress.org public theme repository however, follow a stricter set of guidelines, regardless of the above. This is more so to ensure consistency and interoperability when changing from theme to theme as people who use free themes often do

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.