Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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 :

404.php
comments.php
footer.php
functions.php
header.php
index.php
page.php
sidebar.php
single.php
style.php

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

share|improve this question

1 Answer 1

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

 
discard

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.