the_category_rss

CATEGORY TAG

What It Does

Displays the name of the category or categories that the post is filed under in valid RSS format. the_category_rss must be used within the loop.

Code

<?php the_category_rss() ?>

You have two options to choose from when using the_category_rss. You can use either “rss” or “rdf” format. RSS is used by default.

Example

The code shown above will display the category names in the default RSS format, which is used by default. To display the list in RDF format, you would use:

<?php the_category_rss(‘rdf’) ?>