【问题标题】:Error: Thing is not a known valid target type for the itemReviewed property错误:事物不是 itemReviewed 属性的已知有效目标类型
【发布时间】:2021-05-08 09:41:18
【问题描述】:

它显示错误:对于 itemReviewed 属性来说,Thing is not a known valid target type.for 下面的代码。请帮忙。

<div itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating" style="color: #333; margin: 10px auto; font-size: 12px;display: inline-block;width: 100%;line-height: 20px;">
<span itemprop="itemReviewed" itemscope itemtype="http://schema.org/Thing" style="color: #333; margin: 20px auto; font-size: 12px;">
    <span itemprop="name">#</span>&nbsp;
</span>
<span>
    <a href="https://#/testimonials.html" title="Check all reviews" rel="nofollow" style="color: #333; margin: 20px auto; font-size: 12px;">Reviews</a>
</span><br>
<span itemprop="ratingValue" style="color: #333; margin: 20px auto; font-size: 12px;">5</span> rating, out of 
<span itemprop="bestRating" style="color: #333; margin: 20px auto; font-size: 12px;">5</span> based on 
<span itemprop="ratingCount" style="color: #333; margin: 20px auto; font-size: 12px;">1127</span> Patients.

【问题讨论】:

  • 请添加示例代码或更多详细信息

标签: php html css structured-data


【解决方案1】:

如果您想获得丰富的结果,Google 仅支持 itemReviewed 类型的子集:

https://developers.google.com/search/docs/data-types/review-snippet#review-properties

文档有点混乱,因为它确实提到了关于 itemReviewed 值的 Thing,但随后列出了它可以是哪些具体类型。

【讨论】:

猜你喜欢
  • 1970-01-01
  • 2018-12-15
  • 1970-01-01
  • 1970-01-01
  • 2011-11-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-04-01
相关资源
最近更新 更多