站长百科 | 数字化技能提升教程 数字化时代生存宝典
首页
数字化百科
电子书
▼
建站程序
开发
服务器
办公软件
开发教程
▼
服务器教程
软件使用教程
运营教程
热门电子书
▼
CSS教程
WordPress教程
导航
程序频道
推广频道
网赚频道
人物频道
网站程序
网页制作
云计算
服务器
CMS
论坛
网店
虚拟主机
cPanel
网址导航
WIKI使用导航
WIKI首页
热点词条
最新资讯
网站程序
站长人物
页面分类
使用帮助
编辑测试
创建条目
网站地图
站长百科导航
站长百科
主机侦探
IDCtalk云说
跨境电商导航
WordPress啦
站长专题
网站推广
网站程序
网站赚钱
虚拟主机
cPanel
网址导航专题
云计算
微博营销
虚拟主机管理系统
开放平台
WIKI程序与应用
美国十大主机
编辑“
Theme Development
”(章节)
人物百科
|
营销百科
|
网赚百科
|
站长工具
|
网站程序
|
域名主机
|
互联网公司
|
分类索引
跳转至:
导航
、
搜索
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
===主题模板文件列表=== Here is the list of Theme template files recognized by WordPress. Of course, your Theme can contain any other style sheets, images, or files. ''Just keep in mind that the following have special meaning to WordPress -- see [[WordPress:Template Hierarchy]] for more information.'' 下面是WordPress 识别的主题模板文件的列表。当然,你的主题可以包含任何其它的样式表,图像,或者文件。''只要牢记下面的内容对于WordPress具有一些特别的意义—更多的信息请看看[[WordPress:Template Hierarchy|模板层级]]。 '' ;<tt>style.css</tt>: The main stylesheet. This '''must''' be included with your Theme, and it must contain the information header for your Theme. ;<tt>style.css</tt>:主要的样式表。这个'''必须'''包含在你的主题中,而且必须包含你的主题的信息标题。 ;<tt>index.php</tt>: The main template. If your Theme provides its own templates, <tt>index.php</tt> must be present. ;<tt>index.php</tt>:主要的模板。如果你的主题提供自己的模板,<tt>index.php</tt>必须呈现。 ;<tt>comments.php</tt>: The comments template. If not present, <tt>comments.php</tt> from the "default" Theme is used. ;<tt>comments.php</tt>:评论模板。如果没有出现,来自"默认"主题的<tt>comments.php</tt>就会被使用。 ;<tt>comments-popup.php</tt>: The popup comments template. If not present, <tt>comments-popup.php</tt> from the "default" Theme is used. ;<tt>comments-popup.php</tt>:弹出的评论模板。如果没有出现,来自"默认"主题的<tt>comments-popup.php</tt>就被使用。 ;<tt>home.php</tt>: The home page template. ;<tt>home.php</tt>: 主页模板。 ;<tt>single.php</tt>: The single post template. Used when a single post is queried. For this and all other query templates, <tt>index.php</tt> is used if the query template is not present. ;<tt>single.php</tt>:单一的文章模板。当一篇单一的文章被查询的时候,便会用到这个模板。对于这个和其它的查询模板,如果查询模板没有出现,就会用到<tt>index.php</tt>。 ;<tt>page.php</tt>: The page template. Used when an individual [[WordPress:Pages|Page]] is queried. ;<tt>page.php</tt>:网页模板。当一个单独的[[WordPress:Pages|网页]]得到查询的时候,便会用到这个。 ;<tt>category.php</tt>: The [[WordPress:Category Templates|category template]]. Used when a category is queried. ;<tt>category.php</tt>: The [[WordPress:Category Templates|类别模板]]。当询问类别的时候,便会用到这个。 ;<tt>author.php</tt>: The [[WordPress:Author Templates|author template]]. Used when an author is queried. ;<tt>author.php</tt>:[[WordPress:Author Templates|作者模板]]。查询作者的时候,会使用到这个。 ;<tt>date.php</tt>: The date/time template. Used when a date or time is queried. Year, month, day, hour, minute, second. ;<tt>date.php</tt>:日期/时间模板。当查询日期或者时间的时候,便会用到这个模板。年,月,日,时,分,秒。 ;<tt>archive.php</tt>: The archive template. Used when a category, author, or date is queried. Note that this template will be overridden by <tt>category.php</tt>, <tt>author.php</tt>, and <tt>date.php</tt> for their respective query types. ;<tt>archive.php</tt>:归档模板。当查询一个类别,作者或者日期的时候,便会用到这个模板。注意这个模板会被<tt>category.php</tt>, <tt>author.php</tt>, 和<tt>date.php</tt>各自的查询形式覆盖。 ;<tt>search.php</tt>: The search results template. Used when a search is performed. ;<tt>404.php</tt>: The '''[[WordPress:Creating_an_Error_404_Page|404 Not Found]]''' template. Used when WordPress cannot find a post or page that matches the query. ;<tt>search.php</tt>:搜索结果模板。当执行一个搜索的时候,便会用到这个模板。 ;<tt>404.php</tt>:'''[[WordPress:Creating_an_Error_404_Page|404 没有找到]]'''模板。当WordPress找不到匹配查询的文章或者网页的时候,便会用到这个模板。 These files have a special meaning with regard to WordPress because they are used as a replacement for <tt>index.php</tt>, when available, according to the [[WordPress:Template Hierarchy]], and when the corresponding [[WordPress:Conditional Tags|Conditional Tag]] (a.k.a <tt>is_*();</tt> function) returns true. For example, if only a single post is being displayed, the <tt>[[WordPress:Conditional Tags#A Single Post Page|is_single()]]</tt> function returns 'true', and, if there is a <tt>single.php</tt> file in the active Theme, that template is used to generate the page. 这些文件有关于WordPress的特别意思因为这些文件用来作为<tt>index.php</tt>替代品,条件是这些文件存在,根据[[WordPress:Template Hierarchy|模板层级]],而且相应的[[WordPress:Conditional Tags|条件式标签]] (a.k.a <tt>is_*();</tt> 函数) 返回是真。例如,如果只显示一篇文章,<tt>[[WordPress:Conditional Tags#A Single Post Page|is_single()]]</tt>函数返回'真的',如果归档主题中有<tt>single.php</tt>文件,这个模板就用来创建网页。
摘要:
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅
Wordpress-mediawiki:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)