How to Add Rich Snippets for Ratings and Reviews in WordPress 4.72/5 (3)

Rich Snippets are the few lines of text that appear under every search result. Implementing a WordPress review / rating system which supports rich snippets, is a simple way you can increase your SEO. Rich snippets help to draw attention to your result by providing a visual element and they also provide instant information that is easy to digest. Essentially, rich snippets act as click bait, increasing your click through rates. microdata is Google’s preferred method for structuring content if you want to show rich snippets in search engine results pages (SERP). provides a collection of shared vocabularies for web page content that can be easily understood by the major search engines Google, Bing, Yahoo! and Yandex. The Multi Rating Pro WordPress plugin can generate microdata to enable rich snippets for ratings & reviews on pages or posts.

Google SERP rich snippets preview
Google SERP rich snippets preview

How to generate microdata

The Multi Rating Pro plugin supports generating microdata for ratings & reviews. It can be enabled by default for the automatic placement of rating results (on single pages only) and with rating details shown alongside WordPress comments. It can also be turned on when using the [mrp_rating_result] or [mrp_rating_entry_details_list] shortcodes using a shortcode attribute e.g. [mrp_rating_result generate_microdata="true"].

[mrp_rating_result] microdata

AggregateRating is used to describe the overall rating results.

AggregateRating as shown using the Google's Structured Data Testing Tool
AggregateRating shown using Google’s Structured Data Testing Tool

[mrp_rating_entry_details_list] microdata

Review is used to describe the details of a rating entry. However review microdata is not actually shown as rich snippets.

Review shown using Google's Structured Data Testing Tool
Review as shown using the Google’s Structured Data Testing Tool

How to Test

It may take some time for rich snippets to appear in search engine results. The search engine crawler may not have discovered your site or any updated pages yet. You can speed up this process by asking search engines to re-crawl your site and submitting your sitemap. You can test your markup using Google’s Structured Data Testing Tool and Bing also has a markup validator.

It is important to note that search engines such as Google and Bing do not guarantee that rich snippets will show up for search results even if structured data is marked up and correct.

How to change the Microdata

The microdata is generated in the Multi Rating Pro template files. You can modify the template files if you need more information included in the microdata. See the Template System documentation for instructions. The key template files are:

  • rating-entry-detals-list.php
  • comment-text.php
  • rating-result.php
  • rating-result-star-rating.php
  • rating-result-score.php
  • rating-result-percentage.php
  • rating-result-custom-star-images.php

The template files have access to a variable $generate_microdata which is checked to decide whether to add microdata.

The template files also provides the following WordPress filters in case you only want to modify or add more microdata

  • mrp_microdata_aggregate_rating_attributes – used to modify the attributes for aggregateRating item scope.
  • and mrp_microdata_aggregate_rating_item_reviewed

4 thoughts on “How to Add Rich Snippets for Ratings and Reviews in WordPress

  1. Hi, can you only show the aggregateRating without showing individual rating values?



    Option 4

    Option 3

Leave a Reply

Your email address will not be published. Required fields are marked *

Option 1 Option 2 Option 3