google-console-structured-data-errors

How to Solve Errors in Google Structured Data.

Resolve Errors in Google Structured Data, in some cases we may be presented with an error in the structured data collected by Google, in our website created with wordpress. Because this happens, I do not know.  being honest.

  • Missing: author
  • Missing: entry-title
  • Missing: updated

Generally, these data are reported by Google, in Webmaster Tools. These errors may cause us to lose SEO positioning. Fixing it is very easy.

fix-google-console-structured-data-errors

We must add some lines of code in our file of functions of our wordpress theme, that’s all. Over time, we will see that these errors are disappearing.

To add the function to our WordPress theme we will go to the option ‘Appearance’ and then click on ‘Editor’.

In the column on the right we will look for ‘Theme Functions (functions.php)’ and click on it (I have it in English, I do not know if this is translated).
At the end of all the code we will paste the following:

//add hatom data extra

function add_suf_hatom_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_suf_hatom_data’);

//end hatom data extra

As you can see, it is very easy to solve this annoying problem that appears in Google webmaster Tools, which can ruin all the SEO work we have been working hard on.

 

 

Summary
Review Date
Reviewed Item
▷ How to Solve Errors in Google Structured Data 2018
Author Rating
51star1star1star1star1star