初学者认识:WordPress模版说明

http://www.itjxue.com  2015-08-14 20:04  来源:未知  点击次数: 

wordpress模板结构与功能说明及调用顺序:

点击下面的图片可以以新窗口浏览大图:

点击浏览大图

主页模板

  1. 1. home.php
  2. 2. index.php

单独日志页模板

  1. 1. single.php
  2. 2. index.php

页面模板

  1. 1.pagetemplate.php - pagetemplate.php 自定义的页面模板.
  2. 2.page.php
  3. 3.index.php

分类模板

  1. 1. category-id.php - 如果分类 ID 是 6, WordPress 将调用category-6.php
  2. 2. category.php
  3. 3. archive.php
  4. 4. index.php

标签模板

  1. 1. tag-slug.php - 某个标签调用tag-sometag.php
  2. 2. tag.php
  3. 3. archive.php
  4. 4. index.php

作者模板

  1. 1. author.php
  2. 2. archive.php
  3. 3. index.php

日期归档模板

  1. 1. date.php
  2. 2. archive.php
  3. 3. index.php

搜索结果模板

  1. 1. search.php
  2. 2. index.php

404 (Not Found) 模板

  1. 1. 404.php
  2. 2. index.php

附件 模板

  1. 1. image.php, video.php, audio.php, application.php 或其他的 MIME type.
  2. 2. attachment.php
  3. 3. single.php
  4. 4. index.php

(责任编辑:IT教学网)

更多

推荐CMS技巧文章