Recently, when I tested my website pages on Google Rich Snippets Testing Tool – I found the following three errors.
Warning: Missing required field “entry-title”.
Warning: Missing required field “updated”.
Warning: Missing required hCard “author”.
You may also find these errors, so here’s the fix for all these errors.
Fix “Entry-Title” Error
Go to Appearance> Theme Editor in your WordPress Dashboard.
Open Single Post(Single.php) file.
Hit Find(Ctrl+F) in your editor and look for the_title(). Your can see it’s surrounded by an H1 or H2 tag.
Replace it with this. Just add class=”title entry-title” in the H1 tag.
Fix “Updated” Error
This error occurs because Google rich snippet wants to know when was the post updated. So, search for class=”date” in the single.php file and replace it with class=”date updated”.
In my case, it is class=”post-date updated”.
Fix Missing Field hCard Author Error
This tells Google who is the author of the post. Search for the_author() in the same file, and just modify the code like this:
Add the span class “vcard author” and “fn” and don’t forget to close it with </span> tag.
Now check the page again in the Google Rich Snippet Testing Tool and all the errors are gone.
Note: Editing single.php applies for single post alone (Home page still remains the same with warnings). But I’ve also noticed that Google is showing author information even on pages with warnings.
The codes explained above may not work for everyone. So, you can ask any issue you’re facing in comments.Click Here To Like our Facebook Page to get regular jobs, exams and study material updates.