问题原文
原帖链接 · Manolo · CC BY-SA 3.0
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?
已采纳解答
原帖链接 · dasickle · CC BY-SA 3.0
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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
