3

Within Google Webmasters Search Appearance → Structured Data I'm getting a series of errors:

Error: Missing required hCard "author".

And most of my 44 errors have:

Missing: Author
Missing: entry-title
Missing: updated

There seems to be no CLEAR explanation of these errors. It is either because these classes exist without their nested classes, or they are expected to exist because of something else, possibly itemscope or itemtype=''.

How do you specify with Rich Snippets that the page is about a location and there is no human author?

1 Answer 1

3

This issue is rather common and found in mostly poorly edited or made WordPress themes. entry-title, updated and author are all related to the Hatom markup which requires hentry to included above the fold and ideally in the body.

It's likely that your website is missing author, updated and entry-title leaving hentry still within your code. View source and check if you can see 'hentry'.

Removing Hentry

If using WordPress removing hentry is rather simple, just login as administrator and edit your functions.php, you can remove Hentry from all blog pages using the below code.

add_filter( 'post_class', 'remove_hentry_function', 20 );
function remove_hentry_function( $classes ) {
    if( ( $key = array_search( 'hentry', $classes ) ) !== false )
        unset( $classes[$key] );
    return $classes;
}

Using Hatom Markup

You shouldn't really need to remove Hatom markup as its compatible along side other markups, schema uses itemprop while Hatom uses classes. If you wish to make use of Hatom microdata then your need a page that looks something like:

<article class="hentry">
  <h1 class="entry-title">Blog Title</h1>
  <p>Published by <span class="author vcard"><span class="fn">Author Name</span></span>
     on <time class="published" datetime="2013-06-13 12:00:00">13<sup>th</sup> June 2013</time>

  <p class="entry-summary">This is just an example</p>

  <div class="entry-content">
    <p>Blah blah blah</p>
  </div>
</article>
3
  • thanks for replying! I see that Google seems to like schema? Will they recognize both schema & Hatom? Also, do you have insight on my question? Jul 17, 2014 at 13:17
  • Yes, its common to use more than one form of microdata should it be RDFa, Hatom, Microdata or Schema. In terms of what Google prefers, no idea since Google doesn't reward rankings for microdata and most if not all can display additional information in the results. Schema is just more popular, newer and continuing to be improved. There's no right or wrong to use one or more. Jul 17, 2014 at 16:13
  • Can i replace hatom with hentry? Apr 10, 2015 at 14:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.