• Resolved Eric

    (@shamai)


    im trying to get highest rated post via pre_get_posts for reasons….

    ok so i have this so far:

    $query->set('meta_key', '_kksr_avg'); //i think i need to combine this one and kkr_casts
                $query->set('orderby', 'meta_value');  /this works but not if i combine kkr_casts

    if you can shed some light that would be awesome!

    https://www.ads-software.com/plugins/kk-star-ratings/

Viewing 1 replies (of 1 total)
  • Thread Starter Eric

    (@shamai)

    well i can get top rating now but if someone votes 5 stars and there is only 1 vote it makes it to the top which is cheap….

    It would be nice if average and num of votes were times together. more realistic ratings.

Viewing 1 replies (of 1 total)
  • The topic ‘get top rated via pre_get_posts for archive pages’ is closed to new replies.