How to Fix hatom-feed warnings in Structured Data


Managing a Website and fixing errors is a full time job. There are many more things other than setting up a website and design it.

One has to keep checking for the errors as they can harm the website rankings in Search Engines. Similar thing happened with me few days ago.

When I logged into the Google Webmaster Tools, I saw there were so many errors in the Structured Data tab which looked something like this. image

Structured data is the information formatted in a manner that a Search Engine can understand and how in the search results. And all my webpages were showing the same errors,

I used the Structured Data Testing Tool from Google to find out the errors the pages were showing. These were mainly three fields were missing.

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”.


As the error is showing for all the pages, it means that the these fields are missing in the single page ( mainly single.php in the themes).

Important: Make sure you keep a backup of the file you are editing. If anything goes wrong, you can upload the file back using an FTP client.

Fixing “entry title” 

“entry title” displays the Title of the field, You can class the title with this tag

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

If you are looking for the codes in Twenty Fourteen Theme, you can find them in content.php. They already use “entry title” for their post titles. View this image.
Your theme might be using a different class to display the title. You can simple add the “entry title” like this,

<h1 class="single-title post-title entry-title" itemprop="headline"><?php the_title(); ?></h1>

I have used the above code in one of my own blogs, which are using a different class tag. I just added the “entry title” tag to the existing class and it worked. View this image.

Fixing “Updated”

Every post contains publishing date, the saturated data looks for “date updated” tag to get the date. So you can add this code to fix this.

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

Now, your theme might be using a different class to display date on posts, so you can put this “date updated” tag like this,

<p class="meta date updated"> <time datetime="<?php echo the_time('Y-m-d'); ?>" ><?php the_time('m/d/Y'); ?></time>, <span class="vcard author"><span class="fn"><?php the_author_posts_link(); ?></span></span></p>

 Fixing “Author”

The Structured data needs the Author of the post, you need this tag “vcard author” and “fn” tag.

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

You can find the code that is pulling author’s name in your theme and enclose it with these tags like this, 

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

So now,

When you add these three elements in post template of your theme, you will see no errors in the Structured Data Tool Test.




  1. SA. Ahmed
    can you be more specific where to put those code in single.php file?
    Because I do not like play with codes so much at all. In the past i ruined my website even I had a backup copy of the file.
    Can you show us in example template kind?
    Also some others doesn’t recommend these practice in main them. They suggesting to do in child them.
    Can you help?


  2. Hi Sabastian,
    I have updated the file with two example images. One of Twenty Fourteen theme and one my own theme.

    You can usually find the title tag with is enclosed between < h1 > tag. Anything that says get posts, get title etc can be that file.

    Similarly you can add updated tag to the date area, if your theme does not have dates, you can add the whole code mentioned above, below the title (or anywhere you want the date to appear on page).

    Same goes with the author tag.

    I would strongly suggest you to keep a backup of the file you are going to mess with.

    Or the better thing would be to first try it out on a test site, which you can set up on your subdomain (
    Hope this helps.

  3. I’m having trouble getting this one right.
    I’ve located the title code in my theme(Sapatoo by tokokoo) files

    and its already contains “entry-title” but I’m still getting the error from google.

  4. Hi! Tried several times to fix the issue but it doesn’t work. I suppose it s a theme problem. I m using asteria. I saw that my php and html class’s name are different from Twenty Fourteen Theme.

    Hope you can help me out!


  5. dear sir, i am unable to update author and date in my website that is and it is increasing the errors in structured data. can you please check my website and resolve this issuue. Please help me.

    • Hi Sunil,
      I just look at your site, it seems like you are notu using any tag for Author, data and title.
      Just follow the instructions above if you are using WordPress.

  6. Hey,

    My videos website in how can fixed this please help me i have use Video Stream Theme powered by
    Please help me when i have search in google my site but not give any result .

  7. Hi Asif,

    i am getting missing updated and missing author errors webmaster tool. my blog is on blogger. can you provide fix for blogger?

  8. Hi Asif,
    I am using ICONIC ONE theme in wordpress.I have a hatom error like”Missing author” and missing updated” in structured data.
    In single.php,But i could not found in that as you say.For My theme please solve my problem.

  9. Hello,
    After solve all issue of hatom. What to do ? need to submit website to google again ? Please help me same thing happen with me and i have changed my website theme too.


Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.