*

Ajit Sahane

  • ***
  • 93 posts
  • https://bestclassifiedsusa.com
ratingValue ratingCount reviewCount not working
« on: December 10, 2022, 09:31:37 AM »
 "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": "<?php echo round(osc_count_item_comments_rating(),1); ?>",
    "bestRating": "5",
    "worstRating": "1",
    "ratingCount": "<?php echo (osc_count_item_comments() > 0 ? osc_count_item_comments() : 1); ?>",
    "reviewCount": "<?php echo (osc_count_item_comments() > 0 ? osc_count_item_comments() : 1); ?>"
  },

this is default code -

When we added 4-5 rating on listing then still output same no value change

 "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": "0",     not updating
    "bestRating": "5",
    "worstRating": "1",
    "ratingCount": "1",    not updating
    "reviewCount": "1"    not updating
  },


Listing front showing 3.7 average rating but schema data not update.  2.0.3 v.  & osclass 8.0.2  php 7.4

*

MB Themes

Re: ratingValue ratingCount reviewCount not working
« Reply #1 on: December 10, 2022, 01:55:41 PM »
User rating plugin does not generate structured data for items (as its user rating, not item rating).
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots