在博客或文章中,如果发布者是个人,如何使用 Schema 和微数据?
我可以找到答案:在 BlogPosting 中使用publisher"的正确方法
<span itemprop="name">一些名字</span>但是 Google 测试工具说:
属性publisher.itemtype 的值无效
也许我不太明白答案?publisher如果是人或者和作者一样怎么用?
解决方案如果发布者是个人,这是提供发布者的正确方式.
不幸的是,大多数情况下,Google 的 SDTT 都会报告一些错误,这不是 Schema/Microdata 的错误,而是 Google 要求获取其丰富结果之一的要求.
这里似乎也是这种情况:文章富媒体搜索结果,Google 仅将组织(而非个人)视为发布商:
出版商
组织;必需 (AMP),忽略(非 AMP)
文章的出版商.
因此,如果发布者是个人,请忽略此错误.
如果发布者与作者相同,您可以在同一个itemprop属性中同时使用这两个属性:
In a BlogPosting or an Article if the publisher is a person how to use Schema and Microdata?
I could find that answer: Proper way to use 'publisher' in BlogPosting
<div itemprop="publisher" itemscope itemtype="schema/Person"> <span itemprop="name">Some Name</span> </div>
But the Google Testing Tool says:
The attribute publisher.itemtype has an invalid value
Perhaps I do not understand well well the answer? How to use publisher if it is a person or if it is the same than the author?
解决方案That is the correct way to provide the publisher in case it’s a person.
Unfortunately, most of the time Google’s SDTT reports something as error which isn’t an error with Schema/Microdata, but with Google’s requirements for getting one of their rich results.
This seems to be the case here, too: it’s likely an error for the AMP version of the Articles rich result, for which Google only considers organizations (and not persons) as publishers:
publisher
Organization; required (AMP), ignored (non-AMP)
The publisher of the article.
So if the publisher is a person, simply ignore this error.
If the publisher is the same as the author, you can use both properties in the same itemprop attribute:
<div itemprop="author publisher" itemscope itemtype="schema/Person">
更多推荐
发布者和名称微数据
发布评论