GD Star Rating is my favorite rating plugin for WordPress. Not only does it have just about every option you could ever need, I always use it because it just works.

Included in the rating plugin are several widgets and code examples you can use and Milan included has several pieces of code and lots of examples on his website.

If you just want a simple piece of code that lists the top 20 posts by combining user and visitor votes, here is a simple piece of script.

I used the code to put in a page template for a drinks website. The page lists the most popular drinks (as by voted by users and visitors) and it is always up to date.

top drinks Dynamic top 20 post list with GD Star Rating

The most popular drinks sorted by ratings

Here is the code you can put in a custom page template:

Put that piece of code in a custom page template and you can have a top 20 list that is always updated with your most popular content.

Note: In this example I have given registered users and visitors votes the same weight. If you wish to give registered users more weight you can tweak the mysql query.

Milan is working on GD Star Rating version 2, which will have its home here: www.gdstarrating.com once it is ready.
Milan did an interview here on cleverwp.com a while ago, read it here: Milan Petrovic Interview.
Lars Koudal
My name is Lars Koudal. I am a WordPress Developer and SEO Consultant based in Barcelona.
Click here to read more.
Lars Koudal

@cleverwp

WordPress news and development by Lars Koudal.