Function: the_content_rss

the_content_rss( string $more_link_text, integer $stripteaser, string $more_file, integer $cut, integer $encode_html )

Display the post content for the feed.

Shortcut: tcr

You can use above key combination to trigger the associated snippet for this function in the WordPress Snippets for Visual Studio Code extension. You can also use this shortcut to search for this function on this website.

For encoding the html or the $encode_html parameter, there are three possible values. '0' will make urls footnotes and use make_url_footnote(). '1' will encode special characters and automatically display all of the content. The value of '2' will strip all HTML tags from the content.

Also note that you cannot set the amount of words and not set the html encoding. If that is the case, then the html encoding will default to 2, which will strip all HTML tags.

To restrict the amount of words of the content, you can use the cut parameter. If the content is less than the amount, then there won't be any dots added to the end. If there is content left over, then dots will be added and the rest of the content will be removed.


Name Type(s) Default Value Description
$more_link_text string '(more...)'

Optional. Text to display when more content is available but not displayed.

$stripteaser integer

Optional. Default is 0.

$more_file string ''


$cut integer

Optional. Amount of words to keep for the content.

$encode_html integer

Optional. How to encode the content.

WordPress Developer Newsletter

Stay informed of new chapter releases, important WordPress API updates and more.