Skip to content

Instantly share code, notes, and snippets.

@imelgrat

imelgrat/remove-hentry.php

Last active Feb 14, 2019
Embed
What would you like to do?
Fixing the ‘Missing required hCard / hEntry’ Google Search Console errors (dirty fix)
<?php
function imelgrat_remove_hentry($class)
{
$class = array_diff($class, array('hentry'));
return $class;
}
add_filter('post_class', 'imelgrat_remove_hentry');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment