Change result from “Rating: 4.0, from 53 votes” to “Rating: 4.0 / 5 (53 votes)
-
Hi,
how/where can i change the position of the result from “Rating: 4.0, from 53 votes” to “Rating: 4.0 / 5 (53 votes)” in the light template?I found this in your video, but it’s only data. How can i use this with the voting in the light template?
<php $rating = gdrts_get_rating_item_by_post(); $stars_rating = $rating->get_method_data('stars-rating'); if (isset($stars_rating['rating'])) { ?> Rating: <?php echo $stars_rating['rating'].' / '.$stars_rating['votes']; ?>
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Change result from “Rating: 4.0, from 53 votes” to “Rating: 4.0 / 5 (53 votes)’ is closed to new replies.