Rich Snippets for Ratings & Reviews No ratings yet.

Schema.org 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. Multi Rating Pro can generate schema.org microdata for ratings & reviews that are displayed on pages or posts.

Rich Snippets are the few lines of text that appear under every search result. Microdata is Google’s preferred method for structuring content if you want to show rich snippets in search engine results pages (SERP).

Google SERP rich snippets preview
Google SERP rich snippets preview

How to generate schema.org microdata

The Multi Rating Pro plugin supports generating schema.org 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] schema.org 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] schema.org 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 schema.org 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

Leave a Reply

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

Option 1 Option 2 Option 3