Sometimes you don’t need HTML tags and only want the plain text. You can completely strip HTML tags from the_terms.
Instructions: Add the following code to the functions.php file of your WordPress theme.
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); }
You may also enjoy using HTML5 figure and caption elements in WordPress.
Comments Leave a Reply