How to Fix Structure Data Errors in Google Webmaster Tool

Let’s talk about How to Fix Structure Data Errors (Missing Author and Updated) in Google Webmaster Tool. Structure data errors

Before some weeks I was normally checking my Google Search Console and while checking I clicked on Structure Data I saw 18 errors. I did not understand how these errors occurs.

I searched for solution and everyone was telling me different methods to solve these errors. I searched online then applied on it but still I have not seen any progress.

I contact my friend (Experienced blogger) and he gave 1 big code and told me to paste in a file and wait for some days (It worked).

So today I will share the exact same code with you to fix your Structure Data Errors.

Why these Structure Data Errors Occurs:

These type of errors (Missing Author and Updated) occur due to some missing codes in your theme.

How to Fix Structure Data Errors:

  • Go to Apperance and then click on editor. You will see theme files there Structure data errors
  • Now select functions.php file and you will see a file with coding (I’m not showning my details).
  • Now just scroll down till end and just copy paste the code given below,

function add_atom_data($content) {
$t = get_the_modified_time(‘F jS, Y’);
$author = get_the_author();
$title = get_the_title();
if (is_home() || is_singular() || is_archive() ) {
$content .= ‘<div class=”hatom-extra” style=”display:none;visibility:hidden;”><span class=”entry-title”>’.$title.'</span> was last modified: <span class=”updated”> ‘.$t.'</span> by <span class=”author vcard”><span class=”fn”>’.$author.'</span></span></div>’;
return $content;
add_filter(‘the_content’, ‘add_atom_data’);


  • Now just click on update file.

  • Done.

Now just wait for 2-3 and you will see the errors are decreasing. For me it takes more than 3 weeks and still my errors are decreasing slowly.


Still 3 errors are remaining… but after a week or 2 weeks it will decrease from 3 to 0.

So I hope guys you understand how to fix Structure Data Errors. Checkout Previous post Have a nice day and keep reading Techunwrap 😉 ..

Thank You..

Leave a Reply

Your email address will not be published. Required fields are marked *