Title: Top Rated Posts Page
Last modified: August 31, 2016

---

# Top Rated Posts Page

 *  Resolved [tgberk](https://wordpress.org/support/users/tgberk/)
 * (@tgberk)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/top-rated-posts-page/)
 * Hello everyone,
 * I want to create a Top rated posts page. I have this page template code: [http://pastebin.com/JsJ4myBM](http://pastebin.com/JsJ4myBM)
   I am using this for most viewed posts page with WP-PostViewes plugin. There is
   this code in the page template for views:
 *     ```
       // set up our custom query arguments
           $my_query_args = array(
               'meta_key' => 'views',
               'orderby'  => 'meta_value_num',
               'order'    => 'DESC'
           );
       ```
   
 * What should I paste there for Top rated? I tried “rating,ratings” as meta key
   but doesn’t work. Thank you.
 * [https://wordpress.org/plugins/wp-postratings/](https://wordpress.org/plugins/wp-postratings/)

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

 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/top-rated-posts-page/#post-7187036)
 * Last Point [https://wordpress.org/plugins/wp-postratings/faq/](https://wordpress.org/plugins/wp-postratings/faq/)
 * Please read the documentation next time first.
 *  Thread Starter [tgberk](https://wordpress.org/support/users/tgberk/)
 * (@tgberk)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/top-rated-posts-page/#post-7187065)
 * Actually I’ve looked at the documentation. But when I use this code “To Display
   Highest Rated Post” :
 *     ```
       <?php if (function_exists('get_highest_rated')): ?>
           <ul>
               <?php get_highest_rated(); ?>
           </ul>
       <?php endif; ?>
       ```
   
 * It shows posts as list. I want to show posts like my archive.php file shows. 
   So i think i need to know what should i write as ‘meta key’
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/top-rated-posts-page/#post-7187111)
 * To Sort Most/Least Rated Posts
    You can use: `<?php query_posts( array( 'meta_key'
   => 'ratings_users', 'orderby' => 'meta_value_num', 'order' => 'DESC' ) ); ?>`
 *  [mmmmkkkk311](https://wordpress.org/support/users/mmmmkkkk311/)
 * (@mmmmkkkk311)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/top-rated-posts-page/#post-7187309)
 * I have this code for [https://wordpress.org/plugins/baw-post-views-count/](https://wordpress.org/plugins/baw-post-views-count/)
   plugin and it’s working
 *     ```
       $month = current_time('Ym'); // Get today's date
       'paged' => $paged,
       'meta_key' => '_count-views_month-'.$month,
       'orderby' => 'meta_value_num',
       'order' => 'DESC',
       ```
   
 * is it possible to to use it with WP-PostRatings plugin?

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

The topic ‘Top Rated Posts Page’ 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/)

 * 4 replies
 * 3 participants
 * Last reply from: [mmmmkkkk311](https://wordpress.org/support/users/mmmmkkkk311/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/top-rated-posts-page/#post-7187309)
 * Status: resolved