我是新手代码.我正在尝试在我的联系页面上为Google评论添加结构化数据代码:
http://www.catnips.co.uk/in-home-mobile-cat-groomer-feline-behaviourist.html
Run Code Online (Sandbox Code Playgroud)
我正在使用Google地图客户评论中的评论.
它表示,在Google结构化数据测试工具中进行测试
属性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" />
Run Code Online (Sandbox Code Playgroud)
grg*_*grg 17
错误不在您在问题正文中提供的代码中,而是在JSON-LD中.在结构化数据测试工具中,您可以单击要导致错误的代码中的行的错误.这有助于您确定导致问题的原因.
该错误通知您为publisher属性提供的itemtype无效.虽然schema.org确实支持Article的发布者属性的Person类型,但Google不支持.Google仅支持组织,而不支持 Person,作为发布商属性的类型,如Google Developers上的文章结构化数据页中所述.

| 归档时间: |
|
| 查看次数: |
14649 次 |
| 最近记录: |