We all care about Google search results and these results often now contain a small thumbnail image of the author next to a result. If you still not set, you can use Google Author Link plugin or you can visit “How To Get Your Photo Next To Your Post In Google Search Results” to set it up. After Setting this you can test the result by using this wonderful and a useful tool by Google “Rich Snippets” .
During testing the Google Rich Snippet Tool, If you see a warning of hatom-feed shows up in Extracted structured data section. This is happened because the tool is unable to extract the information “entery-title”, “updated” and “author” from the website or webpage you are testing.
It will display the following warning errors, if the tool is unable to extract information of all these three fields from tested webpage:
hAtom is a microformat for identifying semantic information in weblog posts and practically any other place Atom may be used, such as news articles. hAtom content is easily added to most blogs by simple modifications to the blog’s template definitions.
If you are using theme from Themify the things had to be a bit different. In the following article Writer have covered all above three common Hatom-Feed warnings and provide the solution about how to fix them one by one.
For default WordPress theme: To make WordPress hAtom ready you have to edit the file named ‘Main Index Template’. The easiest way to do this is to go into the WordPress Admin and then to ‘Presentation’ -> ‘Theme Editor’.
This file includes the main ‘WordPress Loop’ that displays all of your posts. To add the hAtom Microformat here the only thing you have to do, is to set some HTML class attribute.
how to fix – hfeed warning: at least one field must be set for hatomentry
The above given solution almost wok for other WordPress themes as well. For WordPress themes from Themeforest and any other WordPress themes you can try following solution.
How to Fix Warning: Missing required field “entry-title”:
If you are using any other WordPress theme, you need to modify index.php or single.php in their theme folder to remove this warning. Make sure the the title of your post which is mostly enclosed in header tags, it must include the class attribute and make sure it has a class attribute then append “entry-title” without quotes to it.
Now open index.php and single.php file for your theme and find the title tag. If it is not enclosed in header tag then wrap it into a header tag and add class attribute with value “entry-title”.
<h1 class="entry-title"><?php the_title(); ?></h1>
How to Fix Warning: Missing required field “updated”:
To resolve this warning error, make sure that the date of published content must be enclosed with a span tag with an attribute.
Now find the the_time or echo get_the_date(); in your single.php and index.php file and wrap it with a span tag with a class attribute.
<span><?php echo get_the_date();?></span>
There is an alternative option you can try following example:
<span><?php the_time(); ?></span>
How to Fix Warning: Missing required hCard “author”:
To rectify and resolve this hCard “author” warning, make sure author name must be included in a span tag as follow:
<span> <span>Author Name</span> </span>
Find the the_author(); or the_author_posts_link(); in installed theme file (index.php or single.php) and do the following changes in it:
<span> <span><?php the_author(); ?></span> </span>
<span> <span><?php the_author_posts_link(); ?></span> </span>
After doing all these changes in your theme files, If the problem still persists, feel free to comment in the comment box below.