WordPress.org

Forums

WP-PostRatings
[resolved] Can't vote on more than one post in the same page (3 posts)

  1. Safatian
    Member
    Posted 10 months ago #

    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/

  2. Lester Chan
    Member
    Plugin Author

    Posted 10 months ago #

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

  3. shavonn4prez
    Member
    Posted 8 months ago #

    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; ?>

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.