WordPress:Template Tags/permalink single rss

来自站长百科
Fludlen讨论 | 贡献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