Posts Tagged ‘wordpress-plugin’

WordPress Random Post Box plugin updated

Wednesday, July 28th, 2010

The WordPress Random Post Box plugin is updated to work in WordPress 3.0. You can download the new version 1.0.3 from the plugin directory.

The problem and solution
It was a simple fix but hard to find. As mentioned by Fabian Anderwald (thanks Fabian) files not loaded within wordpress framework now needs to include the file wp-load.php instead of wp-blog-header.php, a change in WordPress that might be a problem for all integrating WordPress in other applications. This also affected my ajax-call in Random Post Box plugin. So, if you are a developer and run in to the same proble change this:

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

To this:

1
require('./wp-load.php');

There was also a warning generated from an array, a bug which also had an easy fix.

The original post about the plugin »