Summery Summery

Retrieves the feed link for a category.

Syntax Syntax

get_category_feed_link( int $cat_id, string $feed = '' )

Description Description

Returns a link to the feed for all posts in a given category. A specific feed can be requested or left blank to get the default feed.

Parameters Parameters


(int) (Required) Category ID.


(string) (Optional) Feed type. Possible values include 'rss2', 'atom'. Default is the value of get_default_feed().

Default value: ''

Return Return

(string) Link to the feed for the category specified by $cat_id.

Source Source

File: wp-includes/link-template.php

function get_category_feed_link( $cat_id, $feed = '' ) {
	return get_term_feed_link( $cat_id, 'category', $feed );


Changelog Changelog

Version Description
2.5.0 Introduced.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.