Warning: Trying to access array offset on false in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 216
get_the_category_rss() - 检索所有文章类别,并格式化以便在feed中使用 - WordPress函数 - WordPress动力
当前浏览:首页 / WordPress函数 / get_the_category_rss()

get_the_category_rss( string $type = null ): string

检索所有文章类别,并格式化以便在feed中使用


Warning: Undefined array key -1 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 185

Warning: Undefined array key 4 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 186

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "a5b1222dbf5579dcde889eb3f6fe3a4a" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "d72d698f01562a7325d1d265501633b1" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "1d2daed0c24ae2a01c59b4de2da6b9fe" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "da3fa25e51008d111052e4f7cd1619a4" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

cat

category 分类more...

rss

themore...


描述

feed循环中当前文章的所有类别都将被检索并添加feed标记,以便可以轻松地将它们添加到RSS2、Atom或RSS1和RSS0.91 RDF feed中。


参数

$typestring可选
默认值是get_default_feed()返回的类型。

默认:null


返回

string 要在feed中显示的所有文章类别。


钩子



源码

查看源码 官方文档


更新日志

版本描述
2.1.0开始引入

Warning: Undefined variable $o in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference.php on line 194