There are several ways to add aggregate rating markup to your content, but first, let’s talk about what an “aggregate rating” actually is. ;-) The Schema.org website defines the Schema aggregateRating property value as:
The overall rating, based on a collection of reviews or ratings, of the item.
Two things to keep in mind about this:
- An aggregate rating value is calculated from several customer ratings / reviews for the current webpage content (e-commerce product reviews, for example).
- Google prefers — and often double-checks — that Schema markup reflects the current content of the webpage. So, if you want to manually set aggregate rating and/or review values in your Schema markup, make sure these customer ratings and/or reviews also appear in your webpage content (ie. the ratings and reviews are visible).
So what’s the best and easiest way?
- The very best (and easiest) way is to use a supported plugin that offers rating and review features, like the WPSSO Ratings and Reviews add-on. The WPSSO RAR add-on extends the WordPress comment system with optional rating and review features, and does not conflict with WooCommerce’s own product rating features. ;-)
- Alternatively, if you’re using a non-supported plugin — that saves aggregate rating values in post meta — you can use a WPSSO Core custom filter to add the Schema aggregateRating markup.
- If none of the above solutions work for you, the WPSSO Schema JSON-LD Markup add-on also offers a