Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Remove hentry from post_class()
<?php
/**
* Remove 'hentry' from post_class()
*/
function ja_remove_hentry( $class ) {
$class = array_diff( $class, array( 'hentry' ) );
return $class;
}
add_filter( 'post_class', 'ja_remove_hentry' );

Jawanet commented Jan 9, 2014

good brother www.alambudidaya.com

It works but if I visit my website with https, the browser hangs and don't load the page ...
I putted the script in functions.php of my theme

Hey Jare! Thanks for share i test in my site zetadisseny.es

Bonjur commented Sep 14, 2016 edited

Will removing schema trigger a Google penalty? What are the consequences? Gbwhatsapp

I'm getting the same error on my website http://redfire.in , will try the fix.

naazg commented Jan 15, 2017

Hello, My website http://www.designsmag.com shows an error on hentry : missing updated but when i test live data it won't show any error. 0 error 0 warning.. what might be the issue?

I am getting the error --page is not showing https://www.phoenix-golden.com/

Lauyou01 commented Feb 6, 2017

I am still getting the error on www.lauyou.com

Rajeshchourasia1992 commented Mar 10, 2017 edited

sir i'm not able to fix up hentry error on my website http://rajdhaniband.com

sir i'm still getting hentry problem on my site http://rajdhaniband.com is it theme error

Hey, It still has some issue at SEO Company

Chole11 commented Apr 15, 2017 edited

Cool, helped me with my escape game website

Sir, I am getting hentry problem only for my WordPress Tutorial site pages, I am using Voice theme.

Hello, i have problem with missing author and missing updated here www.optimizacijasajta.org/blog/ and when i click on check live data it is showing some other error with breadcrumb and URL is missing, i am confused, any help is most appreciated.

Fixed it at M88. Thank you!

wiggledigitalZA commented May 22, 2017 edited

Worked for me at http://www.placemyad.co.za

Hi there, Thanks for sharing, but my site is showing the error on pages of tags, can you help me to check it?
https://seo.techroomage.com/

Hello, My website http://cakhodacsan.com shows an error on hentry : missing updated , entry, title but when i test live data it won't show any error. 0 error 0 warning.. what might be the issue?

sdynamo commented Jun 12, 2017

Hello, thank you for the code. I was looking for a way to remove hentry from my website pages as it was irritating to see red warning sign in Google Webmaster Tools / Search Console.
The website is CityShoppingPoint a Local Business Directory & Events.
For the type of website I don't see it necessary having hentry codes. And it works flawlessly without having to use plugins.
I suppose it should be working for any themes as well.

thank you that's help me
تيوب ميت

helo... my website still error ....
Kungfubola

Thank you

chuotbumo commented Jul 3, 2017 edited

Thanks, it work : cắt bao quy đầu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment