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

---

# get_the_title_rss( int|WP_Post $post ): string

## In this article

 * [Parameters](https://developer.wordpress.org/reference/functions/get_the_title_rss/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/functions/get_the_title_rss/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/get_the_title_rss/?output_format=md#source)
 * [Hooks](https://developer.wordpress.org/reference/functions/get_the_title_rss/?output_format=md#hooks)
 * [Related](https://developer.wordpress.org/reference/functions/get_the_title_rss/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/get_the_title_rss/?output_format=md#changelog)

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

Retrieves the current post title for the feed.

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

 `$post`int|[WP_Post](https://developer.wordpress.org/reference/classes/wp_post/)
optional

Post ID or [WP_Post](https://developer.wordpress.org/reference/classes/wp_post/)
object. Default is global $post.

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

 string Current post title.

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

    ```php
    function get_the_title_rss( $post = 0 ) {
    	$title = get_the_title( $post );

    	/**
    	 * Filters the post title for use in a feed.
    	 *
    	 * @since 1.2.0
    	 *
    	 * @param string $title The current post title.
    	 */
    	return apply_filters( 'the_title_rss', $title );
    }
    ```

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

## 󠀁[Hooks](https://developer.wordpress.org/reference/functions/get_the_title_rss/?output_format=md#hooks)󠁿

 [apply_filters( ‘the_title_rss’, string $title )](https://developer.wordpress.org/reference/hooks/the_title_rss/)

Filters the post title for use in a feed.

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

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

Retrieves the post title.

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

Calls the callback functions that have been added to a filter hook.

  |

| Used by | Description | 
| [the_title_rss()](https://developer.wordpress.org/reference/functions/the_title_rss/)`wp-includes/feed.php` |

Displays the post title in the feed.

  |

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

| Version | Description | 
| [6.6.0](https://developer.wordpress.org/reference/since/6.6.0/) | Added the `$post` parameter. | 
| [2.0.0](https://developer.wordpress.org/reference/since/2.0.0/) | Introduced. |

## User Contributed Notes

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