Codex

Function Reference/get category feed link

Contents

Description

Released with Version 2.5, this function returns a link to the feed for all posts in the specified category. A particular feed can be requested, but if the feed parameter is left blank, it returns the 'rss2' feed link. This function replaces the deprecated get_category_rss_link function.

Usage

 <?php get_category_feed_link('cat_id''feed'); ?> 

Examples

Default Usage

Return the rss2 feed link for post in category 2

 <?php get_category_feed_link('2', ''); ?>

Parameters

cat_id 
(string) Category ID of feed link to return.
feed 
(string) Type of feed, if left blank uses, by default, the 'rss2' feed.


Depreciated Function

get_category_rss_link