WordPress.org

Ready to get started?Download WordPress

Forums

WP-PostRatings
wp-postratings asc sort (1 post)

  1. Raft
    Member
    Posted 3 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic