Hi,
I have searched and read many tutorial on the internet for "How to enable HTML for tag description" and I tried all of them but it didn't work on my site.
1. I added the code below into archive.php of my theme to display tag description.
<?php echo trim(strip_tags(tag_description())); ?>
2. I installed the plugin "HTML in Category Descriptions" but the Wordpress till strip all html elements in tag desciption.
3. I disabled the plugin "HTML in Category Descriptions" and added the code below to function.php, but nothing happened.
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' );
}
I also tried the code below
remove_filter( 'pre_term_description', 'wp_filter_kses' );
remove_filter( 'pre_link_description', 'wp_filter_kses' );
remove_filter( 'pre_link_notes', 'wp_filter_kses' );
remove_filter( 'term_description', 'wp_kses_data' );
And all solutions didn't help me. You may see my tag description here http://www.uniquefree.com/tag/stablehost-coupon/
Please help.
Thank you.