WordPress: Template Tags/permalink single rss:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
(新页面: == Description == Displays the permalink for the current post, formatted for syndication feeds such as RSS or [[WordPress:Glos...)
 
无编辑摘要
第1行: 第1行:
== Description ==
== Description ==
== 描述 ==


Displays the [[WordPress:Glossary#Permalink|permalink]] for the current post, formatted for syndication feeds such as [[WordPress:Glossary#RSS|RSS]] or [[WordPress:Glossary#Atom|Atom]]. This tag must be used within [[WordPress:The Loop]].
Displays the [[WordPress:Glossary#Permalink|permalink]] for the current post, formatted for syndication feeds such as [[WordPress:Glossary#RSS|RSS]] or [[WordPress:Glossary#Atom|Atom]]. This tag must be used within [[WordPress:The Loop]].
显示当前文章的[[WordPress:Glossary#Permalink|permalink]],为syndication feeds形成格式,如[[WordPress:Glossary#RSS|RSS]] 或者[[WordPress:Glossary#Atom|Atom]]。这个标签必须用在[[WordPress:The Loop|The Loop]]内。


== Usage ==
== Usage ==
== 用法 ==
%%% <?php permalink_single_rss('file'); ?> %%%


%%% <?php permalink_single_rss('file'); ?> %%%
%%% <?php permalink_single_rss('file'); ?> %%%


== Example ==
== Example ==
==例子 ==


Displays the permalink in an RSS link tag.
Displays the permalink in an RSS link tag.
在一个RSS链接标签中显示permalink。
<link><?php permalink_single_rss(); ?></link>


<link><?php permalink_single_rss(); ?></link>
<link><?php permalink_single_rss(); ?></link>


== Parameters ==
== Parameters ==
== 参数 ==


; file : (''string'') The page the link should point to. Defaults to the current page.
; file : (''string'') The page the link should point to. Defaults to the current page.
;文件:(''string'')链接应该指向的网页。默认为当前网页。
== Related ==
== 相关的==


== Related ==
For permalinks in regular page templates, it's recommended to use [[WordPress:Template_Tags/the_permalink|the_permalink()]] instead.
For permalinks in regular page templates, it's recommended to use [[WordPress:Template_Tags/the_permalink|the_permalink()]] instead.
对于通常的网页模板中的permalinks,建议使用[[WordPress:Template_Tags/the_permalink|the_permalink()]]代替。


{{Tag Permalink Tags}}
{{Tag Permalink Tags}}
第25行: 第44行:


[[WordPress:Category:Feeds]]
[[WordPress:Category:Feeds]]
{{标签Permalink标签}}
{{标签页底文字}}
[[WordPress:Category:Feeds|类别:Feeds]]

2008年7月9日 (三) 14:02的版本

Description

描述

Displays the permalink for the current post, formatted for syndication feeds such as RSS or Atom. This tag must be used within WordPress:The Loop.

显示当前文章的permalink,为syndication feeds形成格式,如RSS 或者Atom。这个标签必须用在The Loop内。

Usage

用法

%%% <?php permalink_single_rss('file'); ?> %%%

%%% <?php permalink_single_rss('file'); ?> %%%

Example

例子

Displays the permalink in an RSS link tag. 在一个RSS链接标签中显示permalink。

<link><?php permalink_single_rss(); ?></link>

<link><?php permalink_single_rss(); ?></link>

Parameters

参数

file
(string) The page the link should point to. Defaults to the current page.

;文件:(string)链接应该指向的网页。默认为当前网页。

Related

相关的

For permalinks in regular page templates, it's recommended to use the_permalink() instead.

对于通常的网页模板中的permalinks,建议使用the_permalink()代替。

模板:Tag Permalink Tags

模板:Tag Footer

WordPress:Category:Feeds

模板:标签Permalink标签

模板:标签页底文字 类别:Feeds