Title: Category Description PHP Code
Last modified: August 20, 2016

---

# Category Description PHP Code

 *  [reeltuner](https://wordpress.org/support/users/reeltuner/)
 * (@reeltuner)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/category-description-php-code/)
 * hi guys, new here and new to wp. can someone help me with this code?
 *  <?php echo category_description( $category_id ); ?>
 * i used a php code widget on the sidebar to use it. i wanted to show the category
   description of each category i have on the sidebar… problem is i want the category
   description to show on the single posts of each specific category as well. the
   code works fine but i think it needs more. it probably relates to return value
   or the loop? how do i do this.

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

## Tags

 * [category](https://wordpress.org/support/topic-tag/category/)
 * [description](https://wordpress.org/support/topic-tag/description/)
 * [id](https://wordpress.org/support/topic-tag/id/)
 * [post](https://wordpress.org/support/topic-tag/post/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [reeltuner](https://wordpress.org/support/users/reeltuner/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/category-description-php-code/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
