WordPress Default Theme
References
- Dissection of a WordPress Theme (Urban Giraffe)
- Site Architecture 1.5 (WordPress Codex)
Images
- The Default Theme includes seven background images.
Core Templates
- 404.php
- Description: Displays an error page when a user attempts to access a page that doesn’t exist.
- Includes the templates: footer.php, header.php, sidebar.php.
- archive.php
- Description: Displays a list of blog posts in reverse chronological order.
- Includes the templates: footer.php, header.php, searchform.php, sidebar.php.
- archives.php
- Description: An optional Archives Index page. Displays a list of links to archive pages.
- Includes the templates: footer.php, header.php, searchform.php.
- attachment.php
- Description: Displays an image that has been attached to a blog post (or page?). Used only if the “Link to page” option was selected when the image was uploaded.
- Includes the templates: comments.php, footer.php, header.php.
- index.php
- Description: The main blog page. Displays a list of blog posts in reverse chronological order.
- Includes the templates: footer.php, header.php, searchform.php, sidebar.php.
- links.php
- Description: Displays a list of links.
- Includes the templates: footer.php, header.php.
- page.php
- Description: Displays a page, as opposed to a post.
- Includes the templates: footer.php, header.php, sidebar.php.
- search.php
- Description: Displays a list of search results after a user has performed a search.
- Includes the templates: footer.php, header.php, sidebar.php.
- single.php
- Description: Displays a single blog post.
- Includes the templates: comments.php, footer.php, header.php.
Included Templates
- comments.php
- Description: Displays the comments form.
- Included by: attachment.php, single.php.
- comments-popup.php
- Description: Identical to comments.php, except that it displays in a pop-up window. To activate it, look for
<?php //comment_popup_script(); ?>above<?php wp_head(); ?>in the header.php file. If the function is commented out, as in the example, removing the pair of forward slashes. If the function isn’t present, add it. - Included by: None by default. If activated, by attachment.php and single.php.
- Description: Identical to comments.php, except that it displays in a pop-up window. To activate it, look for
- footer.php
- Description: The footer.
- Included by: 404.php, archive.php, archives.php, attachment.php, index.php, links.php, page.php, search.php, single.php
- functions.php
- Description: Various functions called by the other template files.
- Called by: ?
- header.php
- Description: The header.
- Included by: 404.php, archive.php, archives.php, attachment.php, index.php, links.php, page.php, search.php, single.php
- searchform.php
- Description: The search form.
- Included by: archives.php, sidebar.php. Also shown on archive.php, index.php if no posts are found.
- sidebar.php
- Description: The sidebar.
- Included by:404.php, archive.php, index.php, page.php, single.php.