2

I'm getting these errors with Google Structured Data Testing Tool:

Error: At least one field must be set for Hcard.

Error: Missing required field "name (fn)".

but the fn field is set. Also vcard:

<span class="vcard author">
    <a class="url fn n" href="http://www.nosabesnada.com/author/smiranda/" title="Posts by Sandra" rel="author">Sandra</a>
</span>

I've followed some tutorials and tried some combination, but nothing seems to work.

Any idea of what I am doing wrong?

  • What documentation, tutorial, or example are you following? Class, as far as I understand, does not expect spaces in the name value. Please help us by providing the location of the source material you are using as a guide. Thanks! – closetnoc Oct 8 '14 at 17:43
  • @closetnoc - As far as I know, some classes can be added to a tag separating with a space. This is one of the tutorials: urbanstoic.com/how-to-fix-google-hfeed-or-hcard-warnings – Manolo Oct 8 '14 at 17:50
  • @closetnoc - The error persists if I use just fn in the class. – Manolo Oct 8 '14 at 17:53
  • Okay. Thank You! I can learn something new and I and others will know where you are coming from. I have some business I have to attend to now, but I will look when I can. Hopefully, you will have an answer sooner than that. – closetnoc Oct 8 '14 at 18:21
  • Are you using Wordpress? – closetnoc Oct 8 '14 at 22:31
2

Try the following:

<span class="vcard author">
<a rel="author" title="author profile" href="http://example.com/author/name/">
<span class="fn author">Author Name</span>
</a>
</span>

You need to add class="fn author" in the second span tag.

After you update the code go and test it out.

Your errors should go away gradually within a week or so.

  • Yes! The errors have disappeared. But also I've added a class "url author" to the link tag, and it is also displayed on Structured Data Testing Tool. Thanks ;) – Manolo Oct 10 '14 at 14:51
  • Great! Glad it all worked out. – dasickle Oct 10 '14 at 14:52

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.