Skip to content

Instantly share code, notes, and snippets.

@imelgrat
Last active December 22, 2021 18:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imelgrat/11002ff0aaa08bbcb5dfee46c2f96aff to your computer and use it in GitHub Desktop.
Save imelgrat/11002ff0aaa08bbcb5dfee46c2f96aff to your computer and use it in GitHub Desktop.
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