WordPress Generating Invalid Markup, How To Remove It?
Hi I am trying to get the categories associated with a post in it's meta section by using the following code:
FILED AS:
These two rel values are not invalid. The validator is not up to date.
tag is defined in the HTML5 spec.category is registered officially. So it's no problem to use these values. The validator will probably catch up in the future.
Just paste the following code in your functions.php file inside your theme folder
function remove_category_rel($output)
{
$output = str_replace(' rel="category tag"', '', $output);
return $output;
}
add_filter('the_category', 'remove_category_rel');
Post a Comment for "WordPress Generating Invalid Markup, How To Remove It?"