2016-11-12 146 views
1

我是新來的代碼。我想我的聯繫頁面上添加結構化數據的代碼谷歌的評論:「屬性publisher.itemtype具有無效值」

http://www.catnips.co.uk/in-home-mobile-cat-groomer-feline-behaviourist.html 

我使用從我的谷歌地圖客戶端評論的評論。

在谷歌結構化數據測試工具測試它,它說

屬性publisher.itemtype值無效。

我無法弄清楚我做錯了什麼。

<div itemprop="review" itemscope itemtype="http://schema.org/Review"> 
    <meta itemprop="author" content="Anita Kelsey"> 

    <strong itemprop="itemreviewed">Mobile Cat Grooming</strong> by <a href="https://www.google.co.uk/maps/place/The+Notting+Hill+Cat+Sitting+and+Cat+Grooming+Company/@51.5254631,-0.2526499,12z/data=!4m10!1m2!2m1!1smobile+cat+grooming!3m6!1s0x4876101c4f92036d:0x8514584f53249c41!8m2!3d51.5180716!4d-0.2036502!9m1!1b1/">Jen Crothers</a><br /> 

    <strong>My Rating:</strong> <span itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating"><img src="http://www.catnips.co.uk/wp-content/uploads/2014/09/5-stars-356x73.png" alt="5 stars" width="356" height="73" class="alignnone size-medium wp-image-4614" /><meta itemprop="ratingValue" content="5" /><meta itemprop="bestRating" content="5" /></span> 
</div> 

<span itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating"> 

Anita was absolutely brilliant with my Persian cat Ernie, who was a wriggly customer at times. She skillfully and gently removed the mats on his coat and gave him a very thorough groom. Brilliant, professional and easily a five star service provided from start to finish. 
<meta itemprop="ratingValue" content="5" /><meta itemprop="bestRating" content="5" /> 
+0

包含的標記不會給這個(或任何其他)錯誤。 – unor

+0

我在這裏找到了一個相當不錯的答案:[https://webmasters.stackexchange.com/a/95983](https://webmasters.stackexchange.com/a/95983) – AnarchyOutlaw

回答

7

該錯誤不在您在問題主體中提供的代碼中,而是在JSON-LD中提供。在結構化數據測試工具中,您可以單擊錯誤發送到導致錯誤的代碼行。這有助於您識別造成問題的原因。

的錯誤是告訴你,你的出版商酒店所提供的項目類型是無效的。雖然schema.org確實支持Person,屬性Article,但Google不支持。 Google僅支持Organization,而不是Person,作爲發佈商資產的類型,正如Google Developers上的Articles Structured Data頁所述。

+3

但是......但我沒有組織:( –

+0

@Tahnik然後你沒有資格使用Google的AMP輪播 – grgarside

+1

你的虛擬主機可能是你的發佈者,甚至可能是Namecheap/GoDaddy,你可以發明一個發佈者 - > Tahnik PubCo。schema.org沒有說明可重用發佈商必須具有或者與發佈商必須具有多大關聯性,只需知道Google可以將此數據用於豐富網頁摘要。 –

相關問題