Warning: This function has been deprecated. Use get_category_feed_link() instead.

get_category_rss_link() WordPress Function

The get_category_rss_link() function retrieves the RSS feed URL for a given category. This function is useful for retrieving the RSS feed URL for a specific category, which can then be used in an RSS reader or other application. The get_category_rss_link() function takes one argument, the category ID, and returns the RSS feed URL for that category.

get_category_rss_link( bool $display = false, int $cat_ID = 1 ) #

Print/Return link to category RSS2 feed.


Description

Top ↑

See also


Top ↑

Parameters

$display

(bool)(Optional)

Default value: false

$cat_ID

(int)(Optional)

Default value: 1


Top ↑

Return

(string)


Top ↑

Source

File: wp-includes/deprecated.php

function get_category_rss_link($display = false, $cat_ID = 1) {
	_deprecated_function( __FUNCTION__, '2.5.0', 'get_category_feed_link()' );

	$link = get_category_feed_link($cat_ID, 'rss2');

	if ( $display )
		echo $link;
	return $link;
}


Top ↑

Changelog

Changelog
VersionDescription
2.5.0Use get_category_feed_link()
1.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More