我的结构化数据测试工具中存在一个问题,即“评论未指定审核项目。”
<!-- Review Star Rating In Google Search Results -->
<b:if cond='data:blog.pageType == "item"'>
<div>
<div itemscope itemtype='http://data-vocabulary.org/Review'>
<div style='display:none;'>
Item Reviewed: <span itemprop='itemreviewed'><data:post.title/></span>
Description: <span itemprop='description'><data:blog.metaDescription/></span>
Rating: <span itemprop='rating'>5</span>
Reviewed By: <span itemprop='reviewer'><data:post.author/></span>
</div>
</div>
</div>
</b:if>
<!-- Review Star Rating In Google Search Results -->
我的目标是让我的博客帖子在Google搜索结果中获得星级评分。
答案 0 :(得分:0)
itemReviewed应该是Thing,而不仅仅是文本。 Google还有其他条件,即itemReviewed for a Review应为LocalBusiness,Movie或Book。
答案 1 :(得分:0)
使用此代码:
<b:if cond='data:blog.pageType == "item"'>
<div style='display:none;'>
<div class='vcard' id='hcard-templatoid'>
<span itemprop='description'><span itemprop='itemreviewed'><data:post.title/></span></span>
<time itemprop='dtreviewed'><data:post.timestampISO8601/></time>
Rating: <span itemprop='rating'>5</span>
Posted by: <span class='fn n'>
<span class='given-name' itemprop='reviewer'><data:post.author/></span>
</span>
</div>
</div>
</b:if>
来源:How To Show Star Ratings In Google Search Results - Blogger