Taxonomy class in post_class

wordpress

#1

Hi,

I need help here, here’s my question…
How do you remove/exclude a taxonomy class in post_class WordPress?

Thanks


#2

Hi mabuc

function filter_classes($classes) {
$classes = array_diff($classes, array(“tax-class”));
return $classes;
}
add_filter(‘post_class’,filter_classes’);


#3

I already tried this but it’s for static class… I want the taxonomy class…