A volte non hai bisogno di tag HTML e vuoi solo il testo normale. Puoi rimuovere completamente i tag HTML dai termini.
Istruzioni: Aggiungi il seguente codice al file functions.php del tuo tema WordPress.
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);
}
Potresti anche apprezzare l'utilizzo degli elementi figure e caption di HTML5 in WordPress.
Commenti Lascia una risposta