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(); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
0.71 | Introduced. |