• Hi, is it possible to support Google Structured Data for the average rating and the total number of ratings in this plugin? For an average rating of 4 stars, of a total of 250 reviews:

    https://schema.org/AggregateRating

     <div itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating">
        <span itemprop="ratingValue">4</span> stars -
        based on <span itemprop="reviewCount">250</span> reviews
      </div>

    Thank you for creating an excellent, lightweight plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Steve Puddick

    (@stevepuddick)

    Hi,

    Thanks for mentioning this to me. I was not aware of Google Structured Data. It seems like something that is very relevant for Custom Ratings. I will introduce this in a future release for sure. In the mean time, if you feel like modifying the plugin yourself you will just need to modify public/partials/custom-ratings-public-ractive-template.php. You will use the wpcr_data.rating_avg and wpcr_data.rating_total values that are used elsewhere in that file.

    Thread Starter L. Littlefield

    (@lchelak)

    Thank you! Yes, I will take a look at this file and try a version myself, and will share the code immediately here or in another message if I do. Thanks for those values. This plugin works perfectly with an existing plugin we have created for recipe and food data, and now fulfills all the recommended Google Structured Data.

    Thanks again,
    Lara

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Google Structured Data support’ is closed to new replies.