surveywp / kk-star-ratings

kk Star Ratings wordpress plugin
https://wordpress.org/plugins/kk-star-ratings
Other
118 stars 44 forks source link

Ratings for different bookings on a single page #96

Closed anaskkhalid closed 1 year ago

anaskkhalid commented 4 years ago

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.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.