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.
schema.org microdata is Google’s preferred method for structuring content if you want to show rich snippets in search engine results pages (SERP). 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. The Multi Rating Pro WordPress plugin can generate schema.org microdata to enable rich snippets for ratings & reviews on pages or posts.
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.
[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.
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:
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