Support » Plugin: WP-PostRatings » wp-postratings asc sort

  • I need to make a sorting in wp-postratings, to publish the most popular and the least popular. I use:

    <?php $news = new WP_query(); $news->query($query_string.'&r_sortby=highest_rated&r_orderby=desc') ?>
    <?php while ($news->have_posts()) : $news->the_post(); ?>
                            -code-
    <?php endwhile; ?>

    and

    <?php $news = new WP_query(); $news->query($query_string.'&r_sortby=highest_rated&r_orderby=asc') ?>
    <?php while ($news->have_posts()) : $news->the_post(); ?>
                            -code-
    <?php endwhile; ?>

    The issue is that desc sorting is ok, but asc sorting isn’t, it publishes the same as desc. What can be the problem here?

  • The topic ‘wp-postratings asc sort’ is closed to new replies.