Skip to content

WordPress: Display Category Description

Today I needed to be able to display the Category Description for a set of WordPress posts on the Category Index page.

By adding the following code to archives.php (or index.php could also work depending on your theme files), this was an easy success:

<?php if(is_category()) {
$currentCat = get_category(get_query_var('cat'),false);
echo category_description( $currentCat->term_id );
} ?>

Find this useful? Take just a moment and give a $1. Thanks!
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)