WordPress:Template Tags/permalink single rss
来自站长百科
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()代替。