The plugin can help you add dynamics to your blog / site. Assuming that you have a series of images with thumbnails, you could easily pick them at random and show on your page / in your post at a defined place.

The names of images in the directory the plugin scans should follow the pattern:

  • somename.png – the main image.
  • somename-thumb.gif – the thumbnail for the main image.

Note that current version supports only PNG format for the main image and GIF format for the thumbnail. You can easily modify it to support any extension or let me know if it’s necessary and I’ll update the plugin.

Usage

… this is a random {random_screen} screen …

… this is a random screen …

{random_screen class=css_class} <p>this is a random screen … </p>

this is a random screen …


Downloads

Installation Instructions

Installation is quite straight-forward:

  • Unzip the archive to your plugins folder
  • Go to the WordPress plugins admin panel then activate the [NCG] Random Screens plugin.
  • Open the ncg-random-screens.php in your favorite editor and update the paths:
    • NCG_RS_IMG_ROOT_PATH – absolute path to the site root
    • NCG_RS_IMG_ROOT_URL – URL of the site
    • NCG_RS_IMG_PATH – relative path to images directory from the root

Future Directions

  • Recognize popular extensions for both the image and the thumbnail
  • Define several directories to lookup images from