0

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?

2

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

echo get_term_field( 'description', get_query_var( 'cat' ), 'category', 'raw' );
  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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