|
|
|
::
View next topic
|
| Author |
Message |
ramon fincken Site's programmer
 Get a free globally recognized avatar It's free!
Joined: 03 Aug 2007 Posts: 281 Location: A'dam/Diemen, The Netherlands
|
Posted: Sun Oct 19, 2008 12:09 pm Post subject: [wordpress][solution] Which template files for which pages? |
|
|
Which files in your template are related to which pages?
Read on below and you'll have a complete overview !
PS: If a file does not exist in your theme folder, wordpress will automatically choose index.php as a template file
- style.css - The main stylesheet. This must be included with your theme.
- index.php - The main template. If your theme provides its own templates, index.php must be present.
- comments.php - The comments template. If not present, wp-comments.php is used.
- comments-popup.php - The popup comments template. If not present, wp-comments-popup.php is used.
- single.php - The single post template. Used when a single post is queried. For this and all other query templates, index.php is used if the query template is not present.
- page.php - The page template. Used when a page is queried.
- category.php - The category template. Used when a category is queried.
- author.php - The author template. Used when an author is queried.
- date.php - The date/time template. Used when a date or time is queried. Year, month, day, hour, minute, second.
- archive.php - The archive template. Used when a category, author, or date is queried. Note that this template will be overridden by category.php, author.php, and date.php for their respective query types.
- search.php - The search template. Used when a search is performed.
- 404.php - The 404 Not Found template. Used when WordPress cannot find a post that matches the query.
Read on / Source:
http://boren.nu/archives/2004/11/10/ana...ess-theme/ |
|
| Back to top |
|
 |
Google adsense Advertisement
|
Posted: Sun Oct 19, 2008 12:09 pm Post subject: [wordpress][solution] Which template files for which pages? |
|
|
Advertisement
|
|
| Back to top |
|
 |
GravityForms Advertisement
|
Posted: Sun Oct 19, 2008 12:09 pm Post subject: [wordpress][solution] Which template files for which pages? |
|
|
Advertisement
 |
|
| Back to top |
|
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|