There are times when you'd like to have a certain type of post appear in a widget for use in your sidebar or (in some themes) your header or footer.
I use this to display a random senryu on each page, but it will work equally well for any group of reasonably small posts.
There is the option to include the title of the post, the title of the widget, both titles, or neither.
If you want you can add a bunch of widgets, each showing up to five random posts from a different category.
Installing is pretty easy takes only a minute or two.
- Upload 'random-one-cat-widget' directory to your '/wp-content/plugins/' directory.
- Activate the plugin through the 'Plugins' screen in WordPress.
- On the 'Widgets' sub-menu of 'Appearance' you will find a new widget type called 'Random One Cat'.
- Add one or more of these to your themes widget display areas.
- For each widget you add, select a title and category, then decide how you'd like to see the title or custom fields.
- Save your settings.
- That's it. Enjoy!
2.3
- Added the option to shorten posts to the More... marker
2.2
- Added an unordered list for title only displays
2.1
- Fixed custom field bug
- Fixed empty value issue
- Added option to display only title links
- Tidied widget parameter selection
- Multi-lingual ready (translations required)
2.0
- Added Changelog
- Added option to display up to five posts
- Fixed empty post-meta ul display bug
- Moved to WP_Widget class
1.3
- Added selection for widget title
- Added option to choose which titles display
1.2
- Updated for 2.9
- Added short-code display
1.1.2
- Minor updates to code layout for 2.8
1.1.1
- Minor updates to code layout for 2.7
1.1
- Updated for 2.6
- Fixed random selection bug in WordPress 2.6
1.0
0.4
- Added option for custom field display
0.3
- Updated for 2.5.1 compatibility
0.2
Complete overhaul for 2.5 compatibility
0.1
Initial Release