Last active
June 7, 2016 20:33
-
-
Save amElnagdy/e0643244d317b9f886c404813b80b60f to your computer and use it in GitHub Desktop.
Remove hentry
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Source: https://wpcolt.com/fix-hentry-errors-wordpress/ | |
add_filter( 'post_class', 'remove_hentry' ); | |
function remove_hentry( $class ) { | |
$class = array_diff( $class, array( 'hentry' ) ); | |
return $class; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment