Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.