Bad value category tag for attribute rel on element a

Bad value category tag for attribute rel on element a

Until HTML5 is finilized, the validator is really “experimental”. So in the mean time, we’ll all have to live with things like this. If you must have the little green check there is a clever way to get around this. Just a friendly reminder that you can pass the str_replace function an array as the string to search for.

[php]
add_filter( ‘the_category’, ‘add_nofollow_cat’ );

function add_nofollow_cat( $text) {
$strings = array(‘rel="category"’, ‘rel="category tag"’, ‘rel="whatever may need"’);
$text = str_replace(‘rel="category tag"’, "", $text);
return $text;
}
[/php]