How to Fix Google Structured Data Errors on Wordpress


Hi Friends,



You’ll notice the errors under Google structured data testing tool
The following errors are:

Error: At least one field must be set for HatomEntry
Error: Missing required field “entry-title”
Error: Missing required field “updated”
Error: Missing required hCard “author”




Follow the following path:wp-admin->Apperance->Editor->Single.php



For Error: Missing required field “entry-title”

You found code: <h2><?php the_title(); ?></h2>

You replaced the code to include a class like this:

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



For Error: Missing required field “updated”

Second, You found it:<?php the_date(); ?>

And You changed the code to include a class:

<span class="post-date updated"><?php the_date(); ?></span>



For Error: Missing required hCard “author”

Last, You found this:<?php the_author(); ?>

and You changed the code to include a class:

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




Once you’ve done it, you can test your page on Google structured data testing tool



Hope helpful for you.

No comments:

Post a Comment