Category description allow HTML

18.77K viewsCorecategory description HTML

Hi Rahul,

WordPress uses filters to block HTML in category description (taxonomies).

This is what i use to unblock it:

// allow html in category and taxonomy descriptions
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’ );

BUT it does not effect the AnsPress category description.

How can i enable HTML in AnsPress category description?



Look like a bug. I will fix it. You can track it here:

commented on answer
You are viewing 1 out of 1 answers, click here to view all answers.