WordPress: Template Tags/the category rss:修订间差异
(新页面: == Description == Displays the name of the category or categories a post belongs to in RSS format. This tag must be used within WordPress:The Loop. == Usag...) |
无编辑摘要 |
||
第1行: | 第1行: | ||
== Description == | == Description == | ||
== 描述 == | |||
Displays the name of the category or categories a post belongs to in [[WordPress:Glossary#RSS|RSS]] format. This tag must be used within [[WordPress:The Loop]]. | Displays the name of the category or categories a post belongs to in [[WordPress:Glossary#RSS|RSS]] format. This tag must be used within [[WordPress:The Loop]]. | ||
在[[WordPress:Glossary#RSS|RSS]]格式中,显示类别名称或者一篇文章所属的类别的名称。必须在[[WordPress:The Loop]]内部使用这个标签。 | |||
== Usage == | == Usage == | ||
== 用法== | |||
%%% <?php the_category_rss('type') ?> %%% | |||
%%% <?php the_category_rss('type') ?> %%% | %%% <?php the_category_rss('type') ?> %%% | ||
== Example == | == Example == | ||
== 例子 == | |||
Fragment of an RSS2 feed page. | Fragment of an RSS2 feed page. | ||
一个RSS2 feed网页的部分。 | |||
<?php the_category_rss() ?> | |||
<guid><?php the_permalink($id); ?></guid> | |||
<?php the_category_rss() ?> | |||
<guid><?php the_permalink($id); ?></guid> | <guid><?php the_permalink($id); ?></guid> | ||
== Parameters == | == Parameters == | ||
== 参数== | |||
; type : (''string'') The type of feed to display to. Valid values: | ; type : (''string'') The type of feed to display to. Valid values: | ||
:*<tt>'rss'</tt> (Default) | :*<tt>'rss'</tt> (Default) | ||
:*<tt>'rdf'</tt> | |||
; 类型 : (''string'') 显示的feed的类型。有效的参数值: | |||
:*<tt>'rss'</tt> (默认) | |||
:*<tt>'rdf'</tt> | :*<tt>'rdf'</tt> | ||
== Related == | == Related == | ||
== 相关的 == | |||
{{Tag Category Tags}} | {{Tag Category Tags}} | ||
{{PHP Function Tag Footer}} | {{PHP Function Tag Footer}} | ||
{{标签 类别标签}} | |||
{{PHP函数标签页底文字}} |
2008年6月28日 (六) 17:06的版本
Description
描述
Displays the name of the category or categories a post belongs to in RSS format. This tag must be used within WordPress:The Loop.
在RSS格式中,显示类别名称或者一篇文章所属的类别的名称。必须在WordPress:The Loop内部使用这个标签。
Usage
用法
%%% <?php the_category_rss('type') ?> %%%
%%% <?php the_category_rss('type') ?> %%%
Example
例子
Fragment of an RSS2 feed page. 一个RSS2 feed网页的部分。
<?php the_category_rss() ?> <guid><?php the_permalink($id); ?></guid>
<?php the_category_rss() ?>
<guid><?php the_permalink($id); ?></guid>
Parameters
参数
- type
- (string) The type of feed to display to. Valid values:
- 'rss' (Default)
- 'rdf'
- 类型
- (string) 显示的feed的类型。有效的参数值:
- 'rss' (默认)
- 'rdf'
Related
相关的
the_category, the_category_rss, single_cat_title, category_description, wp_dropdown_categories, wp_list_categories, in_category, get_category_parents, get_the_category get_category_link,
模板:PHP Function Tag Footer the_category, the_category_rss, single_cat_title, category_description, wp_dropdown_categories, wp_list_categories, in_category, get_category_parents, get_the_category get_category_link