WordPress输出RSS文章摘要标签:the_excerpt_rss

WordPress模板标签the_excerpt_rss用于输出RSS格式化的文章摘要,需要用在The Loop主循环里。如果当前文章有填写“摘要”,the_excerpt_rss()函数输出这个摘要内容,否则自动截断文章内容的前55个字数,中文一个汉字只算作一个字数。

the_excerpt_rss()

使用示例:

<description><?php the_excerpt_rss(); ?></description>

扩展阅读

the_excerpt_rss()函数位于:wp-includes/feed.php

相关函数:

阿里云