Zgodnie z oczekiwaniami narzędzie Google do testowania danych strukturalnych działa :
<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>
Ale kiedy próbuję użyć BlogPosting, psuje logowłaściwość:
<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>
Z błędem:
https://example.com/images/logo.png(Atrybut logo.itemtype ma niepoprawną wartość.)
Czy ktoś może wyjaśnić, dlaczego? Jakie kroki mogę podjąć, aby to naprawić?
itempropw tej samej linii co itemtype.
itempropz tej samej linii coitemtype, ponieważ wydawca jest dzieckiem organizacji, strony internetowej i blogu. Lepiej<body itemscope itemtype="https://schema.org/Organization">wtedy użyć<article itemscope itemtype="https://schema.org/BlogPosting"><span itemprop="publisher">itp ... Nie powinno być potrzeby powtarzania logo wiele razy, szczególnie w poście na blogu.