I am using WP Post Ratings and have been unsuccessful in getting the sortby function to work. I attached my code below.
It doesnt work properly and only results in a single post that shows up as being unrated with a title of "Top Rated" and no permalink. I have plenty of posts with ratings but they aren't showing up.
Can someone take a look at this code and let me know what I am doing wrong? Thanks!
<?php query_posts($query_string.'&r_sortby=highest_rated&r_orderby=desc') ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="post-box"><a href="<?php the_permalink(); ?>" rel="bookmark"title="video"><img src="<?php echo get_post_meta($post->ID, 'thumb', true); ?>" width="180" />
<div class="post-title-top"><?php the_title(); ?></div>
<div class="post-title">
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
</div></a>
</div>
<?php endwhile; ?>
<?php wp_reset_query(); ?>