Forums
Forums / Plugin: WP-PostRatings / print the score
(@sroskylo1)
8 years, 2 months ago
hello
How i am trying to print this in JSON-LD code
"@type": "AggregateRating", "ratingValue": "5", "reviewCount": "52" },
I need print only the each value ex”5″ and “52” of post id. Is this possible?
(@gamerz)
<?php echo get_post_meta( get_the_ID(), 'ratings_score', true ); ?> <?php echo get_post_meta( get_the_ID(), 'ratings_users', true ); ?>
<?php echo get_post_meta( get_the_ID(), 'ratings_score', true ); ?>
<?php echo get_post_meta( get_the_ID(), 'ratings_users', true ); ?>
The topic ‘print the score’ is closed to new replies.