Random Image

WordPress Random Image plugin is a basic widget that shows a randomly picked image from a selected folder where images are stored.

  • slide 0

You can define a folder and the widget created by the WordPress Random Image plugin will rotate all the images from this folder in random order.

With the WordPress Random Image plugin, it’s also possible to select only certain images from the folder that will be added in rotation (if you don’t want to include all the images in the rotation). Each image can be linked. Alt-text is optional, but it’s recommended to enter it. The image dimensions (width and height) that the WordPress Random Image widget is using can be defined in any format (pixels, percents, auto-mode…). Therefore, this widget is appropriate for the development of responsive websites.

WordPress Random Image Parameters

Go to your Widgets page and drag and drop the Hot Random Image widget into any available widget position of your theme. You can reach the plugin parameters in Appearance > Widgets > Hot Random Image. After the initial setup, you will need to configure the widget. The most important option that you should enter properly is the folder where your images are stored. If you are getting an empty output of the widget, you probably missed the folder path. Here is the complete list of all WordPress Random Image widget options:

  • Title – Title of the widget. Leave it empty if you don’t need a title.
  • Path to images – Enter the path relative to your WordPress installation. In example “wp-content/uploads/2014/12”.
  • Width – Width of the images. This is the horizontal dimension of your images and it can be in any unit, including pixels, percents and auto value. In an example, here you can enter “500px” or “100%” or “auto”.
  • Height – Height of the images. This is the vertical dimension of your images and it can be in any unit, including pixels, percents and auto value.
  • Alt text – Value for alt text that will be added to the images. It’s recommended to enter any words here that describe your images best.
  • Image link – Enter any link here if you need images displayed by WordPress Random Image widget to be linked. You need to enter the full link here, in example “http://www.google.com”.
  • Select specific images (optional) – By default, WordPress Random Image includes all the images from a folder in the rotation. Leave this blank if you want to rotate all images from the specified folder. If you want to rotate only selected images, specify them here. You can use this format: image name|image link for each image (one per line). On some servers, you must use ; to separate images. So, the path will be used from the “Path to images” and you can specify images here, in example “myimage.jpg|http://www.google.com”. This will include an image from the specified folder which name is myimage.jpg and the image link will be “http://www.google.com”. To add more images, simply add more lines (one image/link combination per line).

This is a handy little plugin that’s used on several themes that we developed. Some of them are Cosmetics WordPress theme and Clean WordPress theme.

Support That Cares

Our products are well-documented, but if you run into the problems with theme installation or usage, simply post your question and our support staff will help.

Always Up To Date

All themes found on this site are tested thoroughly using the latest WordPress version. Any discovered incompatibility issues will be fixed as soon as possible.

Valid HTML and CSS

This plugin is based on clean and valid HTML and CSS code. We tested it using the W3C validation tool to make sure it’s 100% free of errors.

Easier Localization

This plugin is shipped with sets of .mo and .po files that can be used to translate the theme. Also, the theme works with RTL languages.