“Function Reference/get author feed link”的版本间的差异

来自WordPress中文文档
跳转至: 导航搜索
(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...)
 
(1个修订)
(没有差异)

2009年3月14日 (六) 09:23的版本

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.