Support » Plugin: WP-PostRatings » Sorting by avg rating and displaying posts with no votes

  • Resolved vatavazz

    (@vatavazz)


    I’m trying to sort posts by rating, but

    $args['meta_key'] = 'ratings_average'; $args['orderby'] = 'meta_value_num'; $args['order'] = 'DESC';

    will only return posts that have 1 or more votes. Is there a way to return posts that have not been rated yet?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sorting by avg rating and displaying posts with no votes’ is closed to new replies.