After searching for some random posts widgets for WordPress, I couldn’t quite find the one that suited my needs.
See, I wanted something that displayed random posts. But, I also didn’t want the random posts to refresh every page load.
Now, why is that? Because I feel if a user is browsing my site, there might be two or even three interesting links in my random posts section. If a user clicks on any one of those links, the rest are lost.
With Static Random Posts, the random posts will remain the same for a set amount of time (on this blog, for 60 minutes).
The plugin can be downloaded over at Static Random Posts Widget on WP Extend.
- Just unzip and upload the “static-random-posts” folder to your plugins directory
- Activate the plugin through the ‘Plugins’ menu in WordPress.
- Customize the global options (refresh rate, and categories) in the Settings panel.
- Go to Appearance->Widgets and drag the “Static Random Posts” widget into your widget enabled panels.
- Customize the widget title, and add a limit for how many posts to display.
- Repeat steps 4-5 for each additional widget added.
A video of the installation process as well as a description of the plugin is also available.
Random Posts Screenshot
The widget is really simple, but here are some cool features.
Dedicated Admin Panel for…
- Setting the refresh rate (minutes).
- Setting which categories to exclude.
Individual Widget Options
- Can assign a title for each widget.
- Can assign a post limit for each widget.
Admin Refresh Options on a Post
If you are logged is as admin and are viewing a post, you will see a “Refresh” button beneath where the random posts are displayed. You can click this “Refresh” button and automatically refresh your random posts.
If you use WP Super Cache, clicking “Refresh” also clears the cache so your users can see the new random posts immediately.
The “Refresh” feature is useful for those who have long refresh times, but want to tweak the output a bit.