the_content_rss()
the_content_rss( string $more_link_text = ‘(more…)’, int $stripteaser, string $more_file = ”, int $cut, int $encode_html )
显示订阅源的帖子内容。
Display the post content for the feed.
说明(Description)
对于编码html或$encode_html参数,有三个可能的值。“0”将生成url脚注,并使用makeu url_footnote()。“1”将编码特殊字符并自动显示所有内容。值“2”将从内容中删除所有HTML标记。另外请注意,您不能设置字数,也不能设置html编码。如果是这样,那么html编码将默认为2,这将删除所有html标记。要限制内容的字数,可以使用剪切参数。如果内容少于数量,那么就不会在末尾添加任何点。如果有剩余的内容,则会添加点,其余内容将被删除。另请参见#另请参阅_content_feed()
源码(Source)
the_content_rss() 函数的代码位于 wp-includes/feed.php.
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.9.0 | wp-includes/deprecated.php | 2 | 11 |
the_content_rss() 为WP2原创文章,链接:https://www.wp2.cn/functions/the_content_rss/