On my site i have installed WP-Postrating system, i create page with sorting by ratings:

<?php $current_category_ID =  getCurrentCatID(); ?>
    <?php $args = array(
        'posts_per_page' => 60,
        'cat' => $current_category_ID,
        'meta_key' => 'ratings_score',
        'orderby' => 'meta_value_num',
        'order' => 'DESC',
    ); ?>

    <?php query_posts($args); ?>

<?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>

But it sort by number of votes and i want to sort by average vote.

How to do this?

Read more here: WordPress post sorting by rate


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: