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.
Youngblah strongly recommends Hostgator Hosting for all of your web hosting needs. Sign up today for WordPress Hosting starting at just $4.95 per month.
Use coupon code “youngblah25” to get 25% discount on all hosting packages. Get an account with Hostgator now!