To allow HTML code in the taxonomy description in WordPress, add the following code to your theme’s function.php file:
// Allow html in taxonomy description 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' );