the_excerpt_rss()

WordPress输出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

相关函数:

the_excerpt()
get_the_excerpt()
the_content()

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索