Function Reference/get author feed link

来自WordPress中文文档
Zhuozuran讨论 | 贡献2009年3月14日 (六) 09:23的版本 (1个修订)
跳转至: 导航搜索

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.