1

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?

1 Answer 1

4
<?php

echo get_term_field( 'description', get_query_var( 'cat' ), 'category', 'raw' );
1
  • 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
    Apr 12, 2012 at 16:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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