Allow HTML in term (category, tag) descriptions

foreach ( array( 'pre_term_description' ) as $filter ) { remove_filter( $filter, 'wp_filter_kses' ); } foreach ( array( 'term_description' ) as $filter ) { remove_filter( $filter, 'wp_kses_data' ); }
By default WordPress strips HTML from category descriptions. You can get around this by adding a small snippet to your theme functions.php file:
The first part prevents html from being stripped from term descriptions.

The second part prevents html being stripped out when using the term description function ( http://codex.wordpress.org/Function_Reference/term_description).

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.