Title: Query Posts
Last modified: August 21, 2016

---

# Query Posts

 *  Resolved [savvar](https://wordpress.org/support/users/savvar/)
 * (@savvar)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/query-posts-9/)
 * Using <?php query_posts($query_string.’&r_sortby=most_rated&r_orderby=desc’) ?
   > but i want to display all posts,including posts with 0 votes
 * Thank You
 * [http://wordpress.org/plugins/wp-postratings/](http://wordpress.org/plugins/wp-postratings/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/query-posts-9/#post-4115213)
 * I am not too sure whether using WP query_post works, but you can get it a try
 * `<?php query_posts( array( 'meta_key' => 'ratings_users', 'orderby' => 'meta_value_num','
   order' => 'DESC' ) ); ?>`
 *  Thread Starter [savvar](https://wordpress.org/support/users/savvar/)
 * (@savvar)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/query-posts-9/#post-4115267)
 * I got <?php query_posts($query_string.’&r_sortby=most_rated&r_orderby=desc’) ?
   from plugin FAQ and it works perfectly but it displays only already voted posts
 *  Thread Starter [savvar](https://wordpress.org/support/users/savvar/)
 * (@savvar)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/query-posts-9/#post-4115272)
 * Also can i ask if i can put numbers in front of every post in category page?
 * 1 for the first 2 second etc
 * Would be really pleased if you tell me how i can do it
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/query-posts-9/#post-4115282)
 * Sorry, don’t understand your last question
 *  Thread Starter [savvar](https://wordpress.org/support/users/savvar/)
 * (@savvar)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/query-posts-9/#post-4115298)
 * I used `<?php query_posts($query_string.'&r_sortby=most_rated&r_orderby=desc')?
   >` to change archive.php to sort posts according to ratings.
 * Is there a way to put a number on every post on archive page???
 * 1.post1
    2.post2 3.post3
 * etc
 *  Thread Starter [savvar](https://wordpress.org/support/users/savvar/)
 * (@savvar)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/query-posts-9/#post-4115316)
 * Forget my last request was stupid
 * i use <?php query_posts( ‘r_sortby=highest_rated&r_orderby=desc&cat=1135’ ); ?
   > on arhive.php to get top rated posts but posts without ratings dont show
 * what i have to put so those will also show?
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/query-posts-9/#post-4115345)
 * Take a look at my last post in [http://wordpress.org/support/topic/how-to-display-full-post-of-most-popular?replies=5](http://wordpress.org/support/topic/how-to-display-full-post-of-most-popular?replies=5)
 * So within the loop, just add a `<?php the_ratings(); ?>`

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Query Posts’ is closed to new replies.

 * ![](https://ps.w.org/wp-postratings/assets/icon.svg?rev=978014)
 * [WP-PostRatings](https://wordpress.org/plugins/wp-postratings/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-postratings/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-postratings/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-postratings/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-postratings/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-postratings/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/query-posts-9/#post-4115345)
 * Status: resolved