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

I am hosting my own version of Wordpress, and I'd like to do a custom theme for it to suit my website.

However, with so many bits and pieces of examples on the Internet, I'm not really sure how many PHP documents I should have, and what names are they given inside a theme.

So far, i only understand that there are the following PHP documents inside a Wordpress Theme itself :


Are there anymore? Is there a full list that I can refer to (like a cheat sheet)?

share|improve this question
up vote 1 down vote accepted

The template files list in Codex contains most of the templates. See also the template hierarchy page for dynamic, content-specific templates like single-{post_type}.php.

Note that a valid theme only needs to have a style.css and index.php files, all other template files are optional.

share|improve this answer
right. that's a great list. thanks! – Kyle Yeo Jun 3 '12 at 18:02

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.