the_title_rss() WordPress Function

The the_title_rss() function is used to display the title of a WordPress post in an RSS feed. This function is similar to the the_title() function, but with a few key differences. First, the_title_rss() will automatically escape any special characters in the title, which is important for ensuring that your RSS feed is valid. Second, the_title_rss() will also truncate the title to fit within the specified length of the RSS feed. If you're looking to display the title of a post in an RSS feed, then the_title_rss() is the function you need.

the_title_rss() #

Display the post title in the feed.


Source

File: wp-includes/feed.php

function the_title_rss() {
	echo get_the_title_rss();
}


Top ↑

Changelog

Changelog
VersionDescription
0.71Introduced.

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.