WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm in archive.php and attempting to write out the current category's description with full html. However, category_description() prints without the html markup.

How can I force it to retrieve the full description complete with the html tags?

share|improve this question
up vote 2 down vote accepted

Found the answer here > http://www.laptoptips.ca/projects/category-description-editor/

echo get_term_field( 'description', get_query_var( 'cat' ), 'category', 'raw' );
share|improve this answer
thats gr8 and i even +1'ed it but it creates a php error: "PHP Catchable fatal error: Object of class WP_Error could not be converted to string" – Sagive SEO Apr 12 '12 at 16:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.