查看Google搜索结果中的星级评分:“评论未指定评论项目”

时间:2017-03-20 14:40:08

标签: blogger google-rich-snippets

我的结构化数据测试工具中存在一个问题,即“评论未指定审核项目。”

<!-- Review Star Rating In Google Search Results -->
<b:if cond='data:blog.pageType == &quot;item&quot;'>
    <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搜索结果中获得星级评分。

2 个答案:

答案 0 :(得分:0)

根据schema.org,

itemReviewed应该是Thing,而不仅仅是文本。 Google还有其他条件,即itemReviewed for a Review应为LocalBusinessMovieBook

答案 1 :(得分:0)

使用此代码:

<b:if cond='data:blog.pageType == &quot;item&quot;'>
<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