rel=category tag Error often shows up in HTML5 Themes of WordPress. Here is a trick to quickly fix this issue within few minutes.
Background behind rel=category tag Error
rel=category tag Error comes as rel=category tag is not a valid HTML5 syntax. It is suitable for xHTML Transitional. It is matter of fact, Transitional probably performs better for WordPress, may be due to poor coding of the HTML5 themes or something else.
Whatever the reason is, we need to fix this rel=category tag Error.
---
Quickfix for rel=category tag Error
This snippet should work fine for all. Here is the code you actually need :
add_filter( ‘the_category’, ‘add_nofollow_cat’ );
function add_nofollow_cat( $text ) {
$text = str_replace(‘rel=”category tag”‘, “”, $text); return $text;
}

If any copyright text appears after the end of the last } , delete the text after the end of last }.
Now, there are two ways to add this PHP code. One is by adding it to active Theme’s (or child theme’s) fuctions.php file or to add on specific template files.
Adding to fuctions.php is shortcut, but it is better to be avoided as it can add up other problems as reported by WordPress users in WordPress forum. So you have to find the template file for your theme and have to add this snippet to get rid of rel=category tag error.
