WordPress:Template Tags/the category rss

来自站长百科
Xxf3325讨论 | 贡献2008年6月25日 (三) 10:37的版本 (新页面: == Description == Displays the name of the category or categories a post belongs to in RSS format. This tag must be used within WordPress:The Loop. == Usag...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航、​ 搜索

Description

Displays the name of the category or categories a post belongs to in RSS format. This tag must be used within WordPress:The Loop.

Usage

%%% <?php the_category_rss('type') ?> %%%

Example

Fragment of an RSS2 feed page.

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

Parameters

type
(string) The type of feed to display to. Valid values:
  • 'rss' (Default)
  • 'rdf'

Related

the_category, the_category_rss, single_cat_title, category_description, wp_dropdown_categories, wp_list_categories, in_category, get_category_parents, get_the_category get_category_link,

模板:PHP Function Tag Footer