the_category_rss()
云策文档标注
概述
the_category_rss() 是一个 WordPress 函数,用于在 RSS 或 Atom 源中显示文章的分类信息。它通过调用 get_the_category_rss() 来输出格式化后的分类数据。
关键要点
- 函数用于在源中显示文章分类,基于 get_the_category_rss() 实现。
- 接受一个可选参数 $type 来指定源类型,默认为 get_default_feed() 返回的类型。
- 函数定义简单,直接输出 get_the_category_rss() 的结果。
- 相关函数包括 get_the_category_rss(),用于检索和格式化分类数据。
- 自 WordPress 0.71 版本引入,位于 wp-includes/feed.php 文件中。
原文内容
Displays the post categories in the feed.
Description
See also
- get_the_category_rss(): For better explanation.
Parameters
$typestringoptional-
Default is the type returned by get_default_feed() .
Default:
null
Source
function the_category_rss( $type = null ) {
echo get_the_category_rss( $type );
}
Changelog
| Version | Description |
|---|---|
| 0.71 | Introduced. |