Recently it becomes much easier to get your rating into the search results of Google. Using hReview rich snippet code in your blog post can raise the CTR in Google if the rating is visible. The GD Star Ratings plugin has already a function to show the snippet beside the stars widget, but the markup is according the Google Webmaster Help section not valid. We wrote a small function that will fix this problem.

First disable the automatic ratings feature

disable-auto-ratings
and (if already enabled) disable the rich snippet feature, too.

disable-rich-snippets

Add this function to your themes function.php file:

Next open the single.php theme file and add this code below the the_content() function surrounded by PHP tags (if needed).

These two functions are required to show #1 hReview snippet and #2 the ratings widget. The code should work in the most comment WordPress theme files.

Pin It on Pinterest

Share This

Share This

Share this post with your friends!