wordpress snippets last updated   : January 29, 2015
we now have 646 snippets

Strip HTML tags from the_terms

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will strip html from the_terms.

snippet :  PHPcopy
add_filter('the_terms', 'the_terms_function_filter',10,5);
function the_terms_function_filter($term_list, $taxonomy, $before, $sep, $after){
     return strip_tags($them_list);
source →

Did you like this post? If so please share it with your friends. Thanks!