Displaying Random Images, Posts or Quotes on Your WordPress Site

Random Images Posts Quotes WordPress

Have you ever had the need to add random items to your WordPress blog?

Perhaps you want to run a variety of different banner ads in the same slot, or you want to have a cycle of images appear at the top of the screen each time a visitor opens a different page. On the other hand, you might wish to display a selection of random posts.

There are various advantages to this. In the first instance, you might have limited advertising space on your blog but a relationship with multiple advertisers. Rotating space using a random script is one answer to this. If you’re simply interested in a variety of images being displayed, however, this too can be achieved with a random script. Random posts, meanwhile, can draw your readers into your blog with items that they may not have seen before.

Different random content plugins can be used in WordPress, each with a slightly different purpose.

Cycle Random Images

There are many advantages to using random images. They bring an interesting new dimension to the layout of your blog, for instance, and can be used to give extra value to your readers.

If there is not already a facility provided in your WordPress theme to add this functionality, it can be introduced with the minimum of pain thanks to Garee’s Random Image plugin.

Once installed, images can be assigned to the random image shortcode, which can then be placed anywhere in your blog theme. Once introduced, the random image will then change each time your blog is refreshed/reloaded.

Run Random Adverts

If you’re more interested in random adverts (or other code) in your sidebars, the best solution is probably the Ad Codes Widget, a plugin that can be used to display banner ads, XHTML, JavaScript and AdSense code in a widgetized area. These ad-slots can also be rotated.

Random Text

If displaying random text – perhaps quotations or catchphrases – is something that you’re interested in doing on your blog but you’re not keen on editing raw text files, then a dedicated plugin is of course the answer.

One of the top options for this sort of thing is Random Text, a plugin with an easy user interface and plenty of options. To use this plugin you’ll first need to create a few lines of random text, assigning them categories if necessary (useful if you plan to have a lot of quotes) and then configure your chosen random quotes using the options screen. Random Text displays items within the template or in a sidebar.

Adding Random Posts

If you would like to add a sidebar widget or other feature that displays random posts from your blog, there are several useful plugins that you can choose from.

Probably the most popular is the Random Posts Within Date Range Widget (still works with WP3.5+), designed to display posts (including title, date, excerpt) from within a particular date range, left open-ended if necessary if no range is required.

These posts can be limited to a particular category if necessary, and are an excellent way of highlighting content that might have been missed.

Are These Random Enough For You?

Often there is more than enough going on in a basic WordPress installation to need to rely on any random content generators such as these, but if you have been looking for a way to get a particular type of information to display with little or no input from yourself, a random content plugin that displays posts, images, adverts/scripts or even quotes is probably what you’re looking for.

Do you already use a random content tool? If so, let us know which one, and what you think of it!

2 thoughts on “Displaying Random Images, Posts or Quotes on Your WordPress Site”

  1. The problem with the Random Text widget–which I have used for some time, is that once you have more than just a few quotes/bits of text, it becomes cumbersome and tedious to handle them. You can bulk-insert text, yes, but the problem with that is if you happen to have some unseen returns in the text, you often get split quotes orphaned by themselves, or the attribution off by itself. Then you have to go in and ONE AT A TIME and edit EACH ONE. Reload each time, click through to that page until you find it, and then do another. It takes forever. There seems no way to bulk-edit them to take out the returns in the text. I can’t find the original text anywhere (in the bulk insert). So this has now become my nemesis and I am seeking another plugin that has bulk edit and bulk insert features. I simply don’t have time for that much one-at-a-time editing, nor to insert quotes one at a time. I have contacted the author of the plugin numerous times with this question/issue and have received no response. So I wouldn’t recommend this plugin unless you’re only going to display a small collection and not build on it or edit it.

Leave a Reply

Your email address will not be published. Required fields are marked *