Google Webmaster Tools: hentry (markup: errors

11:24 AM by Christian Koch

Filed under wordpress

Last modified Saturday September 12th, 2015

In order to remove those errors you can simply extend your functions.php with the following function:

wordpress hentry errors

 * Remove hentry from post_class
function ct_remove_hentry_class( $classes ) {
	$classes = array_diff( $classes, array( 'hentry' ) );
	return $classes;
add_filter( 'post_class', 'ct_remove_hentry_class' );

This checks if there is a class called hentry in the post classes and if so removes it.

If you want to learn more about hentry and microformats visit:


Related Articles

                                                          Leave a Comment