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?

8
  • 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
    Commented Oct 8, 2014 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
    Commented Oct 8, 2014 at 17:50
  • @closetnoc - The error persists if I use just fn in the class.
    – Manolo
    Commented Oct 8, 2014 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
    Commented Oct 8, 2014 at 18:21
  • Are you using Wordpress?
    – closetnoc
    Commented Oct 8, 2014 at 22:31

2 Answers 2

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.

2
  • 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
    Commented Oct 10, 2014 at 14:51
  • Great! Glad it all worked out.
    – dasickle
    Commented Oct 10, 2014 at 14:52
0

Disable this

I fixed it by disabling this exactly, only this worked finally!. I even disabled all plugins and still got the error, so found it... :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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