Basically, I am trying to display ratings for different past bookings in my plugin. I am using do_shortcode() for different bookings with different ids. This is being echoed in a partial file.
<?php /* GIVE RATINGS IF NOT ALREADY GIVEN */if ($ratings_possible) {echo do_shortcode("[kkstarratings id=" . $booking->id . "]");?>
Here $booking->id is giving a unique booking id number based on which I am trying to get unique rating for each booking.
Issue
Currently, main file runs loop three times and this snippet does display stars perfectly, but of those three star-bar, last one is actually working. Last one accepts the ratings and updates the average, but the first two are not working. We can hover over all there stars-bar and click, but the only last one of it is actually working.
I have also used kk_star_ratings() method but same result.
Detailed description
Basically, I am trying to display ratings for different past bookings in my plugin. I am using
do_shortcode()
for different bookings with different ids. This is being echoed in a partial file.<?php /* GIVE RATINGS IF NOT ALREADY GIVEN */
if ($ratings_possible) {
echo do_shortcode("[kkstarratings id=" . $booking->id . "]");
?>
Here
$booking->id
is giving a unique booking id number based on which I am trying to get unique rating for each booking.Issue
Currently, main file runs loop three times and this snippet does display stars perfectly, but of those three star-bar, last one is actually working. Last one accepts the ratings and updates the average, but the first two are not working. We can hover over all there stars-bar and click, but the only last one of it is actually working.
I have also used
kk_star_ratings()
method but same result.