Title: get_category_rss_link
Published: April 25, 2014
Last modified: May 20, 2026

---

# get_category_rss_link( bool $display = false, int $cat_id = 1 ): string

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/get_category_rss_link/?output_format=md#description)
    - [See also](https://developer.wordpress.org/reference/functions/get_category_rss_link/?output_format=md#see-also)
 * [Parameters](https://developer.wordpress.org/reference/functions/get_category_rss_link/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/functions/get_category_rss_link/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/get_category_rss_link/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/get_category_rss_link/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/get_category_rss_link/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/get_category_rss_link/?output_format=md#wp--skip-link--target)

This function has been deprecated since 2.5.0. Use [get_category_feed_link()](https://developer.wordpress.org/reference/functions/get_category_feed_link/)
instead.

Print/Return link to category RSS2 feed.

## 󠀁[Description](https://developer.wordpress.org/reference/functions/get_category_rss_link/?output_format=md#description)󠁿

### 󠀁[See also](https://developer.wordpress.org/reference/functions/get_category_rss_link/?output_format=md#see-also)󠁿

 * [get_category_feed_link()](https://developer.wordpress.org/reference/functions/get_category_feed_link/)

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/get_category_rss_link/?output_format=md#parameters)󠁿

 `$display`booloptional

Default:`false`

`$cat_id`intoptional

Default:`1`

## 󠀁[Return](https://developer.wordpress.org/reference/functions/get_category_rss_link/?output_format=md#return)󠁿

 string

## 󠀁[Source](https://developer.wordpress.org/reference/functions/get_category_rss_link/?output_format=md#source)󠁿

    ```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;
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/deprecated.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/deprecated.php#L1161)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/deprecated.php#L1161-L1169)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/get_category_rss_link/?output_format=md#related)󠁿

| Uses | Description | 
| [get_category_feed_link()](https://developer.wordpress.org/reference/functions/get_category_feed_link/)`wp-includes/link-template.php` |

Retrieves the feed link for a category.

  | 
| [_deprecated_function()](https://developer.wordpress.org/reference/functions/_deprecated_function/)`wp-includes/functions.php` |

Marks a function as deprecated and inform when it has been used.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/get_category_rss_link/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.5.0](https://developer.wordpress.org/reference/since/2.5.0/) | Deprecated. Use [get_category_feed_link()](https://developer.wordpress.org/reference/functions/get_category_feed_link/)  | 
| [1.2.0](https://developer.wordpress.org/reference/since/1.2.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fget_category_rss_link%2F)
before being able to contribute a note or feedback.