• Hi There.

    We have two the_ratings() call on an archive page, one hidden by CSS at all times dependant on the size of the screen.

    An issue we are having is whilst the top the_ratings call works fine, the second one doesn’t.

    I suspect the problem is that by including the ratings twice, the javascript that handles updating the ratings automatically is looking for #post-ratings-id (where id is a number) on the page. Because we have two, it updates the first version of the ratings. This is hidden by CSS.

    Do you have any ideas?

    Thanks!

    https://wordpress.org/plugins/wp-postratings/

Viewing 1 replies (of 1 total)
  • Plugin Author Lester Chan

    (@gamerz)

    Hi Rhys,

    Unfortunately this is a technical limitation of the plugin. You can’t have two ratings of the same post on the same page because the JS class will conflict.

Viewing 1 replies (of 1 total)
  • The topic ‘Two the_ratings associated with one post, second one doesn't update’ is closed to new replies.