lesterchan / wp-postratings

Adds an AJAX rating system for your WordPress blog's post/page.
https://wordpress.org/plugins/wp-postratings/
123 stars 82 forks source link

Having more than once the same rating on a page? #137

Open bluantinoo opened 5 years ago

bluantinoo commented 5 years ago

Hi @lesterchan I'm using your plugin in a geo-index site. This means page archives has results in 2 places: standard post list and a google map. I've chosen to show the rating both in the list than in the google map.

But as on postratings-js.js the jQuery selector is an ID (#ratings_postid...) voting one post makes disappair the stars in one place.

Would not be possible to use a class instead of the ID as selector?

Would be very nice being able to show the rating also on secondary loops.

lesterchan commented 5 years ago

That is sadly a bad design I did in the past. Unfortunately, I have no time to fix it and unlikely anytime soon.

So, I agree class based will be better. If you want to help, you can help by sending in a PR =)