Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Template Tags/the content rss

This function has been deprecated. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions. All code that uses this function should be converted to use its replacement if one exists. See also wp-includes/deprecated.php. Use any of these functions instead.


Displays the content of the current post formatted for RSS. This tag must be within The_Loop.

This tag will display a "teaser" link to read more of a post, when on non-single/non-permalink post pages and the <!--more--> Quicktag is used.

Replace with


 <?php the_content_rss('more_link_text'strip_teaser,
'more_file'cutencode_html); ?> 


Default Usage

Displays the content in RSS format using defaults.

 <?php the_content_rss(); ?>

Hides Teaser Link and Limits Content

Displays the content in RSS format, hides the teaser link and cuts the content after 50 words.

 <?php the_content_rss('', TRUE, '', 50); ?>


(string) Link text to display for the "more" link. Defaults to '(more...)'.
(boolean) Should the text before the "more" link be hidden (TRUE) or displayed (FALSE). Defaults to FALSE.
(string) File which the "more" link points to. Defaults to the current file.
(integer) Number of words displayed before ending content. Default is 0 (display all).
(integer) Defines html tag filtering and special character (e.g. '&') encoding. Options are:
  • 0 - (Default) Parses out links for numbered "url footnotes".
  • 1 - Filters through the PHP function htmlspecialchars(), but also sets cut to 0, so is not recommended when using the cut parameter.
  • 2 - Strips html tags, and replaces '&' with HTML entity equivalent (&amp;). This is the default when using the cut parameter.


  • Since: 0.71
  • Deprecated: 2.9.0


See also index of Function Reference and index of Template Tags.