structured data errors exampleIf you are getting errors for your structured data within Google Webmaster Tools(Structured Data > hentry markup: microformats.org) you can easily fix them by adding classes around your author, title, and date items. Adding these classes will help Google spiders to locate the structured data they are looking for. Fixing any kind of error in Google Webmaster Tools is important and will have a positive impact on your rankings.

You will need to make all of the following changes in your single.php template file, so go ahead and open that now.

Fixing the “Missing: author” error

We will fix the errors in the order that they are shown in webmasters tools. Let’s start off with the “Missing: author” error.

1. Locate the following author item within your single.php file:
<?php the_author(); ?>
2. Change that to:
<span class="vcard author post-author"><span class="fn"><?php the_author(); ?></span></span>

Fixing the “Missing: entry-title” error

We are now on to the next one, the title of the post.

1. Locate the title item:
<?php the_title(); ?>
2. Add the entry-title class to the H1 or H2 tag that holds the title(snippet displayed above), so it should look something like this:
<h1 class="entry-title"><?php the_title(); ?></h1>

Fixing the “Missing: updated” error

For this last one we will need to wrap a span tag around the date element and add the classes “post-date updated”.

1. Locate the call for the date, it looks something like this:
<?php the_date(); ?>
2. Wrap a span tag around the last snippet of code with classes “post-date updated”, should look like this:
<span class="post-date updated"><?php the_date(); ?></span>

There you are you should be good to go now. Just to be sure though use Google’s Structured Data Testing Tool and enter the url for one of your blog posts. You should see that no errors are returned under the “Extracted structured data” area. Hope this helped you resolve your structured data errors.

Note: If you are using a custom theme some of the snippets I asked you to search for may be different. If that is the case you will just need to look for the snippet that calls the title, author, or date and add the suggested classes.

See How To Fix Webmaster Tools Structured Data Errors On Blogger