How to fix hentry errors in Google Search Console for WordPress : Actually Google Hentry Error occurs for missing of hAtom specification. To get details information about articles search engines send bots, to extract contents they consider to capture article title, Author name, Publishing Date and content. Maximum search engines indicates these characters by their own classes specially they used some common classes:
- entry-title. required
- entry-content. optional
- entry-summary. optional
- updated. required
- published. optional
- author. required
- bookmark. optional
- tag. optional
How to fix hentry errors in Google Search Console for WordPress
If you are seeing the errors below :
Error: Missing required field “entry-title”.
Error: Missing required field “updated”.
Error: Missing required hCard “author”.
Then the reason for these errors coming up is whenever your blog unable to send information about these syndication , search engines will block these contents that missing any of charters.
You can check these errors in Google Webmaster Tools. First Login to Google Webmaster Tools then click on Search Appearance> Structured Data . Another option to see these errors it to use Google Structured Data Testing Tool.
How to fix hentry errors?
Note: Before changing anything , make sure you downloaded full backup of your site or is always better to use a child theme.
There is a quick solution that involving disabling of hentry in your WordPress website and Google will stop showing those errors for you. When you add this snippet to your theme’s functions.php file, you will remove hentry from your WordPress and Google will stop showing those hentry errors for you.
Just like in the image below :
But if you want to really fix them you will need to do few edits in your theme as hentry errors are actually coming from themes. Fixing those errors requires some edits in your theme’s files. Unfortunately, themes structures are not the same, so you need to know where exactly the errors are occurring. So let’s get to some examples:
Missing author: it means that the item (page/post) missing the “author vcard“ CSS class. Firstly locate the call to
the_author(); in your theme’s file, it might look something like this:
><?php the_author(); ?></span>
Change it so that it has a class
vcard author and within that another element with a class
fn. The example above would become something like this:
"vcard author author_name"
><?php the_author(); ?></span></span>
Missing title: it means that the item (page/post) missing the “entry-title“ CSS class. For this, you need to look for your post/page title and add class=”entry-title” for example:
Missing updated: it means that the item (page/post) missing the “updated“ CSS class. For this, you need to find function that displays the time for your post/page, if it’s there, you will add this class to the time function so it will be something like:
"date updated published"
><?php the_time(); ?></span>
We hope this guide helps you to fix hentry errors in your Google Search Console.