Title: DMCunningham's Replies | WordPress.org

---

# DMCunningham

  [  ](https://wordpress.org/support/users/dmcunningham/)

 *   [Profile](https://wordpress.org/support/users/dmcunningham/)
 *   [Topics Started](https://wordpress.org/support/users/dmcunningham/topics/)
 *   [Replies Created](https://wordpress.org/support/users/dmcunningham/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/dmcunningham/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/dmcunningham/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/dmcunningham/engagements/)
 *   [Favorites](https://wordpress.org/support/users/dmcunningham/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Show cat description in Archive](https://wordpress.org/support/topic/show-cat-description-in-archive/)
 *  [DMCunningham](https://wordpress.org/support/users/dmcunningham/)
 * (@dmcunningham)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/show-cat-description-in-archive/#post-551020)
 * The following works for me:
 *     ```
       <?php if (have_posts()) : ?>
       <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
       <?php /* If this is a category archive */ if (is_category()) { ?>
       <h1>Articles in '<?php echo single_cat_title(); ?>'</h1>
       <?php /* below is what you are looking for */ ?>
       <p><?php echo category_description(single_cat_title()); ?></p>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Category Description in Archives page (Hemingway)](https://wordpress.org/support/topic/category-description-in-archives-page-hemingway/)
 *  [DMCunningham](https://wordpress.org/support/users/dmcunningham/)
 * (@dmcunningham)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/category-description-in-archives-page-hemingway/#post-552379)
 * The following works for me when I need to show the category description for the
   category.
 * > <?php if (have_posts()) : ?>
   >  <?php $post = $posts[0]; // Hack. Set $post so
   > that the_date() works. ?> <?php /* If this is a category archive */ if (is_category()){?
   > > <h1>Articles in ‘<?php echo single_cat_title(); ?>'</h1> <p><?php echo category_description(
   > single_cat_title()); ?></p>

Viewing 2 replies - 1 through 2 (of 2 total)