How to show the rated post in new WP_Query
-
Hi, Im using this code:
$q_ratings = new WP_Query( array( 'post_type' => BID, 'post_parent' => get_the_ID(), 'post_status' => array('publish','complete', 'accept'), 'posts_per_page'=>-1, 'meta_key' => 'mr_rating_results', 'ignore_sticky_posts' => true, 'orderby' => 'meta_value_num', 'order' => 'DESC' ));with the metakey ‘mr_rating_results’
but it’s showing all the post even the post with no ratings.
I Would like to ask on how to show only the post which are rated, highest on top, lowest on bottom.
I read all the support forum questions, but nothing shows same problem like mine.
Thankyou Daniel.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘How to show the rated post in new WP_Query’ is closed to new replies.