Author error inside Google Structured Data Test

强颜欢笑 提交于 2019-12-13 04:40:57

问题


I receive this error when analyzing a review of my website: "Missing required hCard "author""

http://www.google.com/webmasters/tools/richsnippets?q=http%3A%2F%2Fwww.gamempire.it%2Fcastlestorm-ps-vita%2Frecensione%2F131419

Why? I have setted the class="author" inside the html.

This is the code of the page: https://gist.github.com/anonymous/7675765, that you can find here: http://www.gamempire.it/castlestorm-ps-vita/recensione/131419


回答1:


author vcard has to be inside the hentry element http://microformats.org/wiki/hentry or you have to use the include pattern http://microformats.org/wiki/include-pattern, but I am not sure if it is supported by Google...




回答2:


you are declaring author a few times in that document...not sure if you want to use microformats, schema.org, or both?

you have markup for both, and one of the author classes is actually nested inside the other...so at the very least that is not correct....fix your nested authors first. if that doesn't resolve validation, come back and share. the solution(s) are relatively easy, but impossible to give you the correct one without knowing more.




回答3:


The solution is to create a new user mentioning him as Author in Admin Access, then open a page and go to screen option and select author. Now in the page check for author and update it with the new author user which you already created.



来源:https://stackoverflow.com/questions/20224219/author-error-inside-google-structured-data-test

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!