Fix for Popularity Contest Plug-In for WordPress 2.5

by Mark on April 10, 2008

When I upgraded to WordPress 2.5 I had to disable that plug-in. Stewart Mader posted the fix for using Alex King’s Popularity Contest with WordPress 2.5. Thanks to Stewart it’s back up and running.

In the WordPress admin area, choose Plugins, then scroll down to Popularity Contest, and click Edit. Scroll down until you see this bit of code:

if (!isset($wpdb)) {
require('../../wp-blog-header.php');
akpc_init();
}

Remove one of the ../ from:

require('../../wp-blog-header.php');

Also, Popularity Contest is what powers my Top Posts widget on the right hand side of the blog. Thanks to Dean Sykes at Tech Teapot for authoring that handy little widget.

Technorati Tags: , , , , ,

Previous post:

Next post: