*

morfik

  • ****
  • 169 posts
Re: Google microdata and ratings
« Reply #15 on: February 26, 2023, 10:49:27 AM »
So the result should be the following?

Code: [Select]
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": "<?php echo osc_count_item_comments_rating() > osc_count_item_comments_rating() : 5 ?>",
    "bestRating": "5",
    "worstRating": "0",
    "ratingCount": "<?php echo (osc_count_item_comments() > osc_count_item_comments() : 1); ?>",
    "reviewCount": "<?php echo (osc_count_item_comments() > osc_count_item_comments() : 1); ?>"
  }

*

MB Themes

Re: Google microdata and ratings
« Reply #16 on: February 26, 2023, 12:42:10 PM »
Yes but you want to use rating vslue instead of count.
Woukd say you've provided wrong code at start.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

morfik

  • ****
  • 169 posts
Re: Google microdata and ratings
« Reply #17 on: February 26, 2023, 12:52:02 PM »
But that's the original code. I didn't touch anything. So it is valid or something is wrong with it?