surveywp / kk-star-ratings

kk Star Ratings wordpress plugin
https://wordpress.org/plugins/kk-star-ratings
Other
118 stars 44 forks source link

Error "Field ratingValue may not be empty" #62

Closed techmarkm closed 1 year ago

techmarkm commented 5 years ago

I'm currently using version 2.6.1 with Wordpress 5.0.2. However when testing my page with Google Structured Data Testing Tool (https://search.google.com/structured-data/testing-tool), I receive an error "Field ratingValue may not be empty".

In more details, AggregateRating only has ratingCount, bestRating, and worstRating, but no ratingValue. Is the plugging not working properly or I'm missing something?

kamalkhan commented 5 years ago

Are you using [avg] in the legend? because it is required for grs.

techmarkm commented 5 years ago

Thanks for your reply! I didn't see any option regarding [avg] in the legend unfortunately.

All the fields shown from the plugin are in AggregateRating: https://imgur.com/a/g2JjAKb

My URL is: https://newtechshop.vn/samsung-galaxy-watch-46mm

Could you give some help on the missing ratingValue field?

kamalkhan commented 5 years ago

It seems like you are only showing the count in your ratings output. Google rich snippets for ratings requires the ratingValue so you will have to use [avg] when displaying the results.

To use the [avg], head over to the plugins settings page on the general tab and look for the legend field.

techmarkm commented 5 years ago

Thank you for your help - I've added the [avg] field to the legend. Is there anyway I can change the itemReviewed type from CreativeWork to Product instead? The rating sadly still doesn't show up on Google Search Result Page.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.