Support » Plugins » 2 Instances of GD Star Ratings?

  • I have a responsive template and below is what I’m using in the div #sidebar:

    <?php if (function_exists('wp_gdsr_render_article')) {
    wp_gdsr_render_article($template_id = 0, $read_only = false, $stars_set = "", $stars_size = 24, $stars_set_ie6 = "", $echo = true);} ?>

    I also have a div called #sidebar-mobile that pops up with the mobile templates and #sidebar is hidden with display:none, but when I paste the above code also in the #sidebar-mobile div, it stops the stars from updating when they are clicked.

    How do I get the php code to work so I can insert it twice in the same single.php file?

  • The topic ‘2 Instances of GD Star Ratings?’ is closed to new replies.