• helloo!

    i create some bbpress topics, comment & voting them
    want to display top-5 topics by vote:

    $best_rated_topics_args = array(
    ‘post_type’ => ‘topic’,
    ‘posts_per_page’ => 5,
    ‘vote_sort’ => ‘score_asc’
    );
    $query = new WP_Query( $best_rated_topics_args );

    while ( $query->have_posts() ) :
    $query->the_post();
    the_title();
    endwhile;

    change score_asc to score_desc (or another) – it is not result
    i have topics sorting by date. why?

    https://ww.wp.xz.cn/plugins/bbpress-votes/

The topic ‘sorting by Votes not work’ is closed to new replies.