WordPress: Template Tags/the title rss:修订间差异
来自站长百科
(新页面: == Description == Displays the title of the current post, formatted for RSS. This tag must be within WordPress:The Loop. == Usage == %%% <?php the_title_...) |
无编辑摘要 |
||
第1行: | 第1行: | ||
== Description == | == Description == | ||
== 描述 == | |||
Displays the title of the current post, formatted for [[WordPress:Glossary#RSS|RSS]]. This tag must be within [[WordPress:The Loop]]. | Displays the title of the current post, formatted for [[WordPress:Glossary#RSS|RSS]]. This tag must be within [[WordPress:The Loop]]. | ||
显示或者返回当前文章的标题,为[[WordPress:Glossary#RSS|RSS]]形成格式。必须在[[WordPress:The Loop|The Loop]]内使用这个标签。 | |||
== Usage == | == Usage == | ||
== 用法 == | |||
%%% <?php the_title_rss(); ?> %%% | |||
%%% <?php the_title_rss(); ?> %%% | %%% <?php the_title_rss(); ?> %%% | ||
== Example == | == Example == | ||
==例子 == | |||
Displays the post title in an RSS title tag. | Displays the post title in an RSS title tag. | ||
在RSS标题标签中显示文章标题。 | |||
<item> | |||
<title><?php the_title_rss(); ?></title> | |||
<item> | |||
<title><?php the_title_rss(); ?></title> | <title><?php the_title_rss(); ?></title> | ||
== Parameters == | == Parameters == | ||
== 参数 == | |||
This tag has no parameters. | This tag has no parameters. | ||
这个标签没有参数。 | |||
== Related == | == Related == | ||
== 相关的== | |||
{{Tag Post Tags}} | {{Tag Post Tags}} | ||
{{No Param Tag Footer}} | {{No Param Tag Footer}} | ||
{{标签文章标签}} | |||
{{没有 Param标签页底文字}} |
2008年7月9日 (三) 15:34的版本
Description
描述
Displays the title of the current post, formatted for RSS. This tag must be within WordPress:The Loop.
显示或者返回当前文章的标题,为RSS形成格式。必须在The Loop内使用这个标签。
Usage
用法
%%% <?php the_title_rss(); ?> %%%
%%% <?php the_title_rss(); ?> %%%
Example
例子
Displays the post title in an RSS title tag. 在RSS标题标签中显示文章标题。
<item> <title><?php the_title_rss(); ?></title>
<item>
<title><?php the_title_rss(); ?></title>
Parameters
参数
This tag has no parameters.
这个标签没有参数。
Related
相关的
模板:No Param Tag Footer the_ID, the_title, the_title_attribute, single_post_title, the_title_rss, the_content, the_content_rss, the_excerpt, the_excerpt_rss, previous_post_link, next_post_link, posts_nav_link, the_meta,