Title: Google Structured Data support
Last modified: October 17, 2016

---

# Google Structured Data support

 *  [L. Littlefield](https://wordpress.org/support/users/lchelak/)
 * (@lchelak)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/google-structured-data-support/)
 * 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](https://schema.org/AggregateRating)
 *     ```
        <div itemprop="aggregateRating" itemscope itemtype="http://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](https://wordpress.org/support/users/stevepuddick/)
 * (@stevepuddick)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/google-structured-data-support/#post-8328439)
 * 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](https://wordpress.org/support/users/lchelak/)
 * (@lchelak)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/google-structured-data-support/#post-8329099)
 * 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.

 * ![](https://ps.w.org/custom-ratings/assets/icon-256x256.jpg?rev=1369537)
 * [Custom Ratings](https://wordpress.org/plugins/custom-ratings/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-ratings/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-ratings/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-ratings/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-ratings/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-ratings/reviews/)

## Tags

 * [google structured data](https://wordpress.org/support/topic-tag/google-structured-data/)

 * 2 replies
 * 2 participants
 * Last reply from: [L. Littlefield](https://wordpress.org/support/users/lchelak/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/google-structured-data-support/#post-8329099)
 * Status: not resolved