初学者认识:WordPress模版说明
wordpress模板结构与功能说明及调用顺序:
点击下面的图片可以以新窗口浏览大图:
主页模板
单独日志页模板
- 1. single.php
- 2. index.php
页面模板
- 1.pagetemplate.php - pagetemplate.php 自定义的页面模板.
- 2.page.php
- 3.index.php
分类模板
- 1. category-id.php - 如果分类 ID 是 6, WordPress 将调用category-6.php
- 2. category.php
- 3. archive.php
- 4. index.php
标签模板
- 1. tag-slug.php - 某个标签调用tag-sometag.php
- 2. tag.php
- 3. archive.php
- 4. index.php
作者模板
- 1. author.php
- 2. archive.php
- 3. index.php
日期归档模板
- 1. date.php
- 2. archive.php
- 3. index.php
搜索结果模板
- 1. search.php
- 2. index.php
404 (Not Found) 模板
附件 模板
- 1. image.php, video.php, audio.php, application.php 或其他的 MIME type.
- 2. attachment.php
- 3. single.php
- 4. index.php
«
»