WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Can't vote on more than one post in the same page

[Resolved] Can't vote on more than one post in the same page

  • The voting system works great but only on one post. If I vote on another post after voting on the first on pages like the index page or other loop pages… A popup says “Please rate only 1 post at a time”. Also when I vote twice on the same post “Failed to verify Ajax referrer” is displayed instead of “You have already voted”.

    I’m not using any caching plugins or anything.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Lester Chan
    Participant

    @gamerz

    That is correct and it is a limitation. There is no way around it unless the plugin is re-wrote.

    shavonn4prez
    Member

    @shavonn4prez

    I’m able to do this if I use WP_Query to get the posts if it’s any help to you! 🙂

    <?php
    				$args=array('orderby'=>'date', 'posts_per_page'=>'5');
    				$recent_posts = new WP_Query($args);
    			while ($recent_posts->have_posts()) : $recent_posts->the_post(); ?>
    
    				<li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a><?php if(function_exists('the_ratings')) { the_ratings(); } ?></li>
    			<?php endwhile; ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Can't vote on more than one post in the same page’ is closed to new replies.