How to Fix – hfeed Warning: At least one field must be set for HatomEntry

Home   >   How To Guides   >   How to Fix – hfeed Warning: At least one field must be set for HatomEntry

When using the Google Rich Snippet Tool a warning of hatom-feed shows up in Extracted structured data section if the tool is unable to extract the information “entery-title”, “updated” and “author” from the webpage you are testing.

If the tool is unable to extract information of all three fields from webpage it shows following warnings;

  • Warning: At least one field must be set for HatomEntry
  • Warning: Missing required field “entry-title”.
  • Warning: Missing required field “updated”.
  • Warning: Missing required hCard “author”.
Hatom-Feed Warning
If Google Rich Snippet Tool is able to extract information from one or two fields it shows warning for only missing fields.
 

Solution:

You need to provide rich snippet tool these three fields to remove these warnings. WordPress users need to modify single.php in their theme folder to remove this warning.

Fixing Warning: Missing required field “entry-title”:

The title of your post which is mostly enclosed in header tags needs to include a class attribute. If it already has a class attribute then append “entry-title” without quotes to it.

1
<h1 class="entry-title">Page Title</h1>

For WordPress users:

Open single.php located in your theme folder and find. If it is not enclosed in header tag then wrap it into a header tag and add class attribute with value “entry-title”.

1
<h1 class="entry-title"><?php the_title(); ?></h1>

Fixing Warning: Missing required field “updated”:

To remove this warning you need to have a date of content update. The date needs to be closed in a span tag with attribute.

1
<span class="date updated">Date</span>

For WordPress users:

In your single.php file find the_time or echo get_the_date(); and enclose it into a span tag with attribute.

1
<span class="date updated"><?php echo get_the_date();?></span>

Or

1
<span class="date updated"><?php the_time(); ?></span>

Fixing Warning: Missing required hCard “author”:

To fix the missing hCard “author” warning add enclose the author name into following span tags.

1
<span class="vcard author">
2
 <span class="fn">Author Name</span>
3
</span>

For WordPress users:

In single.php find the_author(); or the_author_posts_link(); and replace it with anyone of following lines.

1
<span class="vcard author">
2
 <span class="fn"><?php the_author(); ?></span>
3
</span>

Or

1
<span class="vcard author">
2
 <span class="fn"><?php the_author_posts_link(); ?></span>
3
</span>

Hatom-Feed Warning Fixed

Hatom-Feed Warning Fixed

If the problem persist or you have any question please post them into comments.

Posted on November 17, 2012 |   

Comments

  1. Saurabh

    Thanks. I am getting the same error for my Authorship. I replaced "post-title" with "entry title" but can it affect my theme ? As i replaced theme's class post title ?

    1. Kaleem Sajid

      Well it depends on

      post-title
      class of your theme. I recommend you to use
      class="post-title entry-title"
      instead.

  2. MItch

    I can't seem to get this working correctly. I did all the proper steps that was suggested in the tutorial. When I test the Structured Data I still get the errors. Warning: At least one field must be set for HatomEntry. Warning: Missing required field "entry-title". Warning: Missing required field "updated". Warning: Missing required hCard "author".

    1. Kaleem Sajid

      I'm sorry but the solution given here works only for "HatomEntry" error appearing in posts. I visited your wordpress website it mostly consists of pages. I also noticed you have WPSocial SEO Booster Plugin installed. Your problem can be solved if you replace this plugin with SEO Ultimate plugin and enable Open Graph Integrator module in its settings.

  3. פורט סעיד

    I tried it but I still get the error for entry title :( can you PLEASE have a look? Here: http://bit.ly/W65vfl Thanks

    1. Kaleem Sajid

      Hi I visited the page you mentioned. The problem there was that you used wrong Quotation marks to enclose attribute values. You used this (”). Replace all of them with this ("). E.g class=”vcard author”. If you replace all these (”) with this (") the problem will be solved. The problem with page title can be solved by removing the anchor tag (<a></a>) from your <h1></h1> tag. Hopefully it'll help. Post me if you have any queries.

  4. Erin

    Hi - I cant seem to find this on my single.php. It seems like the theme I am using has different ways of labeling the entry-title, etc? Any help is appreciated! I have Wordpress SEO installed and it doesnt seem to be working.

    1. Kaleem Sajid

      Your theme do have a header tag to label posts, but it is not showing author name and date. Still you can add this information in your theme's single.php file using the code(for wordpress) above. Also, your single.php do have a h1 tag. Replace h1 tag and its child tags with the code for wordpress in fixing entry-title section of this post.

  5. Brett

    Any thoughts on how to fix this problem with the WP genesis framework since it does not have a single.php and instead is based on hooks http://my.studiopress.com/docs/hook-reference/

  6. Joko

    Thanks.. now I can solve the problem in my blog.. finally hCard Author error is fixed.

  7. Mariusz

    Hi There. Great and clean guide. I do not know why but everything works ok while testing mariuszrymanowski.pl/blog but when checking home page errors still appeaser. Its 2nd month of waiting for Image in Search results :(

  8. Himanshu

    Found these errors and implemented your way, but failed to clean the errors. Please help me.

  9. Sam

    Does the authorship image still show in results if this error message comes up?? Please let me know, or i'll have a lot of editing to do in wordpress!

  10. Kashyap Shreepathi

    Thanks a lot! Worked perfectly. Google authorship is working fine now...

  11. Ali Sh

    I always get this error and I have search in my single.php but I couldn't find the (entry-title) not any (h1) or (h2) or anything so I can edit it. I have 3 posts in my homepage and my website shows those error too in Structured Data Testing Tool...What shall I do, pls help! hatom-feed hatom-entry: Warning: At least one field must be set for HatomEntry. Warning: Missing required field "entry-title". Warning: Missing required field "updated". Warning: Missing required hCard "author".

  12. Steve

    This instruction/fix seems to be for posts rather than pages. Am I wrong? I am only getting errors for a page. Warning: Missing required field "updated". Warning: Missing required hCard "author". My posts are okay. Thanks.

  13. Ed Lamb

    Hi, Thanks for posting this! Unfortunately, it's online fixing 2 out of 3 issues - I'm still seeing an error for the 'entry-title' which is frustrating. Think it may be a WP theme issue but developer is out of ideas. Site URL I'm working on is http://rmpproperty.com/ if anyone has any ideas! Thanks again, Ed

  14. Chris

    Thanks for this! I have been able to fix 2/3 of them but I cannot seem to get the 'Header Tag' created for the entry-title one.

  15. Chris

    DOH! I found it scratch that....early morning! Thanks for this post!

  16. Walter Pinem

    how to fix the errors on swift basic wordpress theme? The codes of author and date updated aren't in the list. How should I do to fix them? Thanks before

Leave a Reply

HTML is escaped automatically. Surround code blocks with <pre></pre> for readability.
* Your email address will not be published. Fields mark with (*) are required.