I am also looking for this thing, i want to add in ld+json…
Note that I don’t provide support outside the plugin scope.
You can try something like that within your WordPress loop. If you can’t get it to work, you might need to hire a dev.
<script type="application/ld+json">
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "<?php echo get_post_meta( get_the_ID(), 'ratings_average' ); ?>",
"reviewCount": "<?php echo get_post_meta( get_the_ID(), 'ratings_users' ); ?>"
},
"review": {
"@type": "Review",
"reviewRating": {
"@type": "Rating",
"ratingValue": "<?php echo get_post_meta( get_the_ID(), 'ratings_users' ); ?>"
},
</script>
Thread Starter
evil
(@p47ri0t)
my 5 star for you and your great plugin star for wordpress
Ah sorry
<script type="application/ld+json">
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "<?php echo get_post_meta( get_the_ID(), 'ratings_average', true ); ?>",
"reviewCount": "<?php echo get_post_meta( get_the_ID(), 'ratings_users', true ); ?>"
},
"review": {
"@type": "Review",
"reviewRating": {
"@type": "Rating",
"ratingValue": "<?php echo get_post_meta( get_the_ID(), 'ratings_users',true ); ?>"
},
</script>