Function Reference/get author feed link

来自WordPress中文文档
Latz讨论2008年8月21日 (四) 12:01的版本 (New page: == Description == Returns a link to the feed for all posts by the specified author. A particular feed can be requested, but if the feed parameter is left blank, it returns the 'rss2' feed...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索

Description

Returns a link to the feed for all posts by the specified author. A particular feed can be requested, but if the feed parameter is left blank, it returns the 'rss2' feed link.

Usage

%%% ?php get_author_feed_link('author_id', 'feed'); ? %%%

Examples

Default Usage

Returns the rss2 feed link for post by author 2

pre ?php get_author_feed_link('2', ); ?/pre

Parameters

author_id 
(string) Author ID of feed link to return.
feed 
(string) Type of feed; possible values: rss, atom, rdf. Default: blank (returns rss2)

Note

Currently the parameter 'feed' is not evaluted by the function.