Title: Adding Category Description
Last modified: August 18, 2016

---

# Adding Category Description

 *  Resolved [johnmag4u](https://wordpress.org/support/users/johnmag4u/)
 * (@johnmag4u)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/adding-category-description/)
 * How can I add the category description by placing code before the loop sequence
   in the index.php file?

Viewing 1 replies (of 1 total)

 *  [thommeredith](https://wordpress.org/support/users/thommeredith/)
 * (@thommeredith)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/adding-category-description/#post-423051)
 * I figured out that I can place this on the main category page and it will show
   the category title and then the description,
 *     ```
       ...
   
       <?php if (have_posts()) : ?>
   
       <?php $this_category = get_category($cat);?>
   
       <dt><?php echo $this_category->cat_name; ?></dt>
       <dl><?php echo $this_category->category_description; ?></dl>
   
       <?php while (have_posts()) : the_post(); ?> 
   
       ...
       ```
   
 * Here is also a link for more information:
    [http://codex.wordpress.org/Category_Templates#The_Custom_Category_Template](http://codex.wordpress.org/Category_Templates#The_Custom_Category_Template)

Viewing 1 replies (of 1 total)

The topic ‘Adding Category Description’ is closed to new replies.

## Tags

 * [description](https://wordpress.org/support/topic-tag/description/)
 * [index.php](https://wordpress.org/support/topic-tag/index-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [thommeredith](https://wordpress.org/support/users/thommeredith/)
 * Last activity: [19 years, 2 months ago](https://wordpress.org/support/topic/adding-category-description/#post-423051)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
