WordPress:Template Tags/permalink single rss

来自站长百科
Xxf3325讨论 | 贡献2008年6月27日 (五) 10:53的版本 (新页面: == Description == Displays the permalink for the current post, formatted for syndication feeds such as RSS or [[WordPress:Glos...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航、​ 搜索

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.

Usage

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

Example

Displays the permalink in an RSS link tag.

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

Parameters

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

Related

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

模板:Tag Permalink Tags

模板:Tag Footer

WordPress:Category:Feeds