您的当前位置:首页 > 知识博客 > wordpress建站

WordPress获取分类Rss函数:get_the_category_rss

时间:2024-03-12

WordPress函数get_the_category_rss用于获取当前文章所属分类、标签的Rss。

get_the_category_rss( string $type = null )

函数参数

$type

字符串

Feed的类型,可用值:rss2、atom,默认值为get_default_feed()函数返回的值,即rss2

函数返回值

<category><![CDATA[开发]]></category>
<category><![CDATA[WP函数]]></category>

扩展阅读

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

相关函数:

  • get_the_tags()

  • get_the_category()

  • sanitize_term_field()


欢迎咨询/Welcome to inquire
tel/vx:18842938855
qq:1685522781
email:1685522781@qq.com

Copyright © 2019-2024 baidu.bond


Whatsapp
Powered by RRZCMS