Folgendes wird wie erwartet mit dem Google Structured Data Testing Tool ausgeführt :
<div>
<div itemprop="publisher" itemscope id="organization-example" itemtype="https://schema.org/Organization">
<a itemprop="url" href="https://example.com">
<img itemprop="image logo" src="https://example.com/images/logo.png" alt="LOGO">
<span itemprop="name">EXAMPLE</span>
<span itemprop="description">This is an EXAMPLE</span>
</a>
</div>
</div>
<div itemscope itemtype="https://schema.org/WebPage" itemref="organization-example">
</div>
Aber wenn ich versuche, ein zu verwenden BlogPosting, bricht es die logoEigenschaft:
<div>
<div itemprop="publisher" itemscope id="organization-example" itemtype="https://schema.org/Organization">
<a itemprop="url" href="https://example.com">
<img itemprop="image logo" src="https://example.com/images/logo.png" alt="LOGO">
<span itemprop="name">EXAMPLE</span>
<span itemprop="description">This is an EXAMPLE</span>
</a>
</div>
</div>
<article
itemscope
itemtype="https://schema.org/BlogPosting"
itemref="organization-example"
>
</article>
Mit dem Fehler:
https://example.com/images/logo.png(Das Attribut logo.itemtype hat einen ungültigen Wert.)
Kann mir jemand erklären warum? Und welche Schritte könnte ich unternehmen, um das Problem zu beheben?
itempropin derselben Zeile wie itemtype.
itempropin derselben Zeile wie aitemtype, da der Publisher ein untergeordnetes Element von Organization, WebPage und BlogPosting ist. Besser zu benutzen<body itemscope itemtype="https://schema.org/Organization">als<article itemscope itemtype="https://schema.org/BlogPosting"><span itemprop="publisher">etc ... Es sollte nicht nötig sein, das Logo mehrmals zu wiederholen, besonders in einem Blog-Beitrag.