Title: [Plugin: Category Posts Widget] Stripping Code
Last modified: August 19, 2016

---

# [Plugin: Category Posts Widget] Stripping Code

 *  [pantone204](https://wordpress.org/support/users/pantone204/)
 * (@pantone204)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/plugin-category-posts-widget-stripping-code/)
 * This plugin works great, except that it strips my code from the post, so if I
   have a link in the excerpt it removes it completely.
 * Any thoughts?
 * [http://wordpress.org/extend/plugins/category-posts/](http://wordpress.org/extend/plugins/category-posts/)

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

 *  Thread Starter [pantone204](https://wordpress.org/support/users/pantone204/)
 * (@pantone204)
 * [16 years ago](https://wordpress.org/support/topic/plugin-category-posts-widget-stripping-code/#post-1400184)
 * Line 91 in the code of cat-posts.php
 * Change <php the_excerpt(); > to <php the_content(); >
 * Should work.
 *  [granville](https://wordpress.org/support/users/granville/)
 * (@granville)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-category-posts-widget-stripping-code/#post-1400207)
 * I have a similar question and tried your answer – however, this removes the excerpt
   and replaces it with the full content. So while this works, you can no longer
   limit the content to 250 (or whatever) characters.
 * Does anyone have a solution for amending the_excerpt so that it keeps the html
   tags, such as ul and li; and in pantone24’s case the a tags?

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

The topic ‘[Plugin: Category Posts Widget] Stripping Code’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [granville](https://wordpress.org/support/users/granville/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-category-posts-widget-stripping-code/#post-1400207)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
