WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/get the category rss

Description

Retrieve all of the post categories, formatted for use in feeds.

All of the categories for the current post in the feed loop, will be retrieved and have feed markup added, so that they can easily be added to the RSS2, Atom, or RSS1 and RSS0.91 RDF feeds.

Usage

<?php get_the_category_rss$type ); ?>

Parameters

$type
(string) (optional) default is 'rss'. Either 'rss', 'atom', or 'rdf'.
Default: 'rss'

Return Values

(string) 
All of the post categories for displaying in the feed.

Examples

Notes

Change Log

Since: 2.1.0

Source File

get_the_category_rss() is located in wp-includes/feed.php.

Related

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