Skip to content

Commit

Permalink
add rating count to json+ld
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargaj committed Feb 2, 2023
1 parent 1fdabd1 commit 3fd8309
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions prod.php
Original file line number Diff line number Diff line change
Expand Up @@ -1069,6 +1069,7 @@ function RenderBody() {
$linkedData["aggregateRating"] = array(
"@type" => "AggregateRating",
"ratingValue" => $main->prod->voteavg,
"ratingCount" => $main->prod->voteup + $main->prod->votedown + $main->prod->votepig,
"bestRating" => 1,
"worstRating" => -1
);
Expand Down

0 comments on commit 3fd8309

Please sign in to comment.