Codex

Template Tags/the category rss

Contents

Description

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

Usage

 <?php the_category_rss$type ?> 

Parameters

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

Example

Fragment of an RSS2 feed page.

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

Related

Categories: the_category(), the_category_rss(), single_cat_title(), category_description(), wp_dropdown_categories(), wp_list_categories(), get_the_category(), get_the_category_by_ID(), get_category_by_slug(), get_the_category_list(), get_category_parents(), get_category_link(), is_category(), in_category()

See also index of Function Reference and index of Template Tags.