Fix the hatom entry Error
hatom-feed hatom-entry Error – WordPress Solution
Using rich snippet tool from Google i have noticed that i have some things missing there.
Error: At least one field must be set for HatomEntry
Error: Missing required field “entry-title”.
Error: Missing required field “updated”.
Error: Missing required hCard “author”.
So i have solved them (
at least on my single posts for now) and i want to share it with WordPress users.
Lets take them one by one..
Error: Missing required field “entry-title”
The simple solution for this is located in single.php
<h1 class="entry-title"><?php the_title(); ?></h1>
search for the_title and enclose it into a span tag like above.
In my case as i am using a framework and theme from Themify the things had to be a bit different.
So the solution in my case was in loop.php
i found this inside :
<h1 class="post-title"><?php the_title(); ?></h1>
so it had class already.. hmm, i just added the class together with the existing one.
<h1 class="post-title entry-title"><?php the_title(); ?></h1>
and it worked and solved my problem.
I bet that this will help you understand how to fix it for any other framework and theme 😉
Error: Missing required field “updated”
Simple solution again would be located in single.php
<span class="date updated"><?php the_time(); ?></span>
Again we search our file for the_time and put it in tags like above.
In my case i searched the loop.php once again and i found this :
<time datetime="<?php the_time('o-m-d') ?>" class="post-date" pubdate><?php the_time(apply_filters('themify_loop_date', 'M j, Y')) ?></time>
All i had to do is add an extra class date updated to the existing span and i got this :
<time datetime="<?php the_time('o-m-d') ?>" class="post-date date updated" pubdate><?php the_time(apply_filters('themify_loop_date', 'M j, Y')) ?></time>
Error: Missing required hCard “author”
In single.php we have to find the_author or in some cases the_author_posts_link and parse it like this:
<span class="vcard author"> <span class="fn"><?php the_author_posts_link(); ?></span> </span>
In my case once again was different but i think you get the idea.
I hope that my experience with this will help you solve your own errors.
hatom-feed hatom-entry Error – problem solved
As i had many many requests i have created a plugin that solves all the errors, it inserts all the required data without the need of any coding whatsoever. All you have to do is activate it.
( clear the cache afterwards if you are using any cache plugins )
The plugin is available for download from Gumroad service and it costs 10$. If you have any problems after activating the plugin, feel free to contact me using the contact form on the website or by sending me an email at firstname.lastname@example.org and we will find an alternative solution.
How to fix microformats hentry error?
Nice article, i was concerned on removing hatom error.. found this blog. Seems you have done a good research.
Thank You So Much I have Solve My Problem
Sir my query is deleted i did not receive the answer for my query.
I’ve buy your plugin error and setup it on my theme since 4 days, but i’ve already hatom erreur on my webmaster tool…
what i can do for resolve them?
thx for your feedback
I need your help. My website is facing a problem with hatom and hcard errors. This errors are coming in many pages. My website url is ***
please help me out from this Nikola.
The plugin should be able to solve all the errors. Cheers.
I get a problem on my blogspot site, what should I do
Hi fivera I bought your plugin last night, installed and activated it but structured data testing still has same amount of errors (47 of them). Various errors including Author missing and required, publisher missing and required, Datemodified missing and recommended, name missing and required and some others. I have used W3 Total Cache to empty the following caches… Page Cache, Database Cache, Object Cache, and Browser Cache but still the same errors. Can you please… Read more »
Hi there. I do offer support for the plugin as stated in my blog post above, feel free to shoot me en email on info@Nikola fivera Petrovic.net. First of all, the errors in the webmaster take time to go away as the webmaster doesn’t have instant access to your pages, google crawls them and sends back the feedback to webmaster every 15 days or so. Secondly if you want to check if the errors are… Read more »
The errors will be gone after Google crawls your pages. Hit me back in a month to say thanks 😛
I’m trying to follow your instructions; what if I search for “the_title()” in the theme and there are multiple files that use it? Should I modify each file to make sure that it’s in a class?
In your last solution “author”, themify loop.php showing author only in one place.
Do you recommend to change above like this?
You recommend to change that /</em”