the_category_rss()

WordPress输出RSS格式分类函数

WordPress模板函数the_category_rss用于输出RSS格式的分类,必须用在The Loop主循环中。

函数参数

$type

字符串值,默认值:rss2

RSS的版本,可选的值如下:

rss2
rss
rdf
atom

函数使用示例

以rss2格式输出分类:

<?php the_category_rss() ?>
<guid><?php the_permalink($id); ?></guid>

扩展阅读

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

相关函数:

the_category()
single_cat_title()
category_description()
wp_dropdown_categories()
wp_list_categories()
get_the_category()
get_category_parents()
get_category_link()
is_category()
in_category()

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