posts

Random One Cat Widget 2.0 Released

Version 2.0 of the Random One Cat widget for WordPress was released today.  This is a complete rewrite of the module to use the new WP widget class.  That not only future proofs the widget but also greatly simplifies the code and reduces it by about half.

In addition this version allows you to display up to five random posts at a time, rather than just a single post.

Unfortunately the move to the new WP widget class means that any widgets you have already added to you theme with a previous version will be removed when you upgrade to version 2.0.  I know that will be annoying but the benefits of moving to the new class far outweigh the effort to re-add the widget (i.e. this widget will continue to work in WordPress 3.1 and beyond).

Random One Cat Widget Improvements

I’ve made a small change to Random One Cat Widget which improves the functionality of titles.  You can now choose to display only the widget title, only the post title, both of the titles together or neither title.   A new drop down has replaced the checkbox in the widget configuration and you should revisit each one to choose the option you prefer.  This adds flexibility to the widget without bringing much additional complexity.  I hope that you like this feature – please take a moment to leave some feedback either way.

Random Post Widget

You can use Random One Cat Widget to display a random post from a given category.