post_class remove tag- or category- from slug
You can filter post_class and change these class names: add_filter( ‘post_class’, ‘wpse_78237_post_class’ ); function wpse_78237_post_class( $classes ) { $out = array (); foreach ( $classes as $class ) { if ( 0 === strpos( $class, ‘tag-‘ ) ) { $out[] = substr( $class, 4 ); } elseif ( 0 === strpos( $class, ‘category-‘ ) ) … Read more