php - Wordpress custom taxonomy term description html tags -
i've looked on stack overflow , wp forums , can't find within last few years works issue.
i've created custom taxonomy(album category) custom post type(album) , need display taxonomy description html paragraphs, outputs raw text(which how saved in database - no html tags @ all).
i've tried adding remove_filter( 'term_description', 'wp_kses_data' );
functions file, nothing after re-activating theme , updating descriptions.
i add custom field taxonomy, nice use existing description field if use html tags.
i not qualified enough neophyte, did find following online, , seems work , far not crash site. no warranties, implied or otherwise. feel should contribute, given site has been me.
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' );
i think taxonomy descriptions underutilized feature, , whatever hacks available may 1 day made features. forward downvotes!
Comments
Post a Comment