the_content_rss


the_content_rss ( $more_link_text = '(more...)', $stripteaser = 0, $more_file = '', $cut = 0, $encode_html = 0 )

Parameters:
  • (string) $more_link_text Optional. Text to display when more content is available but not displayed.
  • (int) $stripteaser Optional. Default is 0.
  • (string) $more_file Optional.
  • (int) $cut Optional. Amount of words to keep for the content.
  • (int) $encode_html Optional. How to encode the content.
See:
Defined at:

Description

Display the post content for the feed.

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.

Related Functions

the_content, the_content_feed, get_the_content, the_title_rss, the_category_rss

Top Google Results

User discussions

wpseek mobile