Category description allow HTML

27.66K viewsCorecategory description HTML
0

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?

0

Hello,

Look like a bug. I will fix it. You can track it here: https://github.com/anspress/anspress/issues/417

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