Search code examples
schema.orgrich-snippets

How to display a single product rating in Google rich snippets using Schema.org


Most examples shows multiple ratings

I want to show ratings in Google but all the rating examples I have found shows multiple people votes.

I want to show ONE author rating

What I want is to show just one rating made by the team behind the site, like the screenshot on this URL: http://wordpress.org/extend/plugins/author-hreview/

So far...

This is not what I want but maybe a start.

<div itemscope itemtype="http://schema.org/Product">
  <span itemprop="name">Test</span>
  <div itemprop="aggregateRating"
    itemscope itemtype="http://schema.org/AggregateRating">
   Rated <span itemprop="ratingValue">3.5</span>/5
   based on <span itemprop="reviewCount">11</span> customer reviews
  </div>
</div>

Accepted answer


Solution

  • I found it!

    <div itemtype="http://schema.org/Review" itemscope="">
        <meta content="admin" itemprop="author" />
        <div itemtype="http://schema.org/Rating" itemscope="" itemprop="reviewRating">
            <meta content="1" itemprop="worstRating" />
            <meta content="3.5" itemprop="ratingValue" />
            <meta content="5" itemprop="bestRating" />
        </div>
    </div>