I’ve been looking for an answer to this, too. :/
You need to edit popularity-contest.php like this:
Around line 1383, there is the following code:
WHERE post_status = 'publish'
add AFTER it:
AND post_type = 'post'
It should look like this in the end:
WHERE post_status = 'publish'
AND post_type = 'post'
AND post_date < NOW()
Hacking on the plugin code isn’t a particularly good idea (for instance, when you upgrade you have to port all of your changes to the new version).
Popularity Contest supports filters, so you can define behavior like that outside of the plugin. To get rid of pages in almost all functions (which is, I think the behavior most people want) you can add:
add_filter('posts_where', 'limit_pc_posts', 10, 0);
function limit_pc_posts() {
return " AND post_type = 'post' ";
}
somewhere in your template (I normally include a custom PHP file in all of my themes so I can add/remove things like this.
HTH
The code from jbiesnecker breaks the whole blog on 2.8.6. May be because of custom queries I use?