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.
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.