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/category description

Description

Returns the description of a category.

Usage

 <?php category_description(category); ?> 

Examples

Default Usage

Displays the description of a category with ID 3 by echoing the return value of the tag.

<p><?php echo category_description(3); ?></p>
WordPress is a favorite blogging tool of mine and I share tips and tricks for using WordPress here.

With Category Title

<p><strong><?php single_cat_title('Currently browsing'); ?>
</strong>: <?php echo category_description(3); ?></p>
Currently browsing WordPress: WordPress is a favorite blogging tool of mine and I share tips and tricks for using WordPress here.

Parameters

category 
(integer) The numeric category ID for which category description to return. Defaults to current category, if one is not set.

Related

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