Menu
All plugins

Random Image Sources and Options

Every source, link type, caption position and randomisation option of the Random Image element in one place.

Media library query

Three images drawn at random from a list of attachment IDs (the Include IDs field). Reload the page for a new draw. Pool is cached for the duration you set.
  • A pair of vultures at the scavenger hide
  • An egret strides through a reed bed
  • A Golden Eagle strikes a pose

Caption positions

Below the image, or overlaid at the bottom, top or centre. Caption source here is the attachment title.
  • A marsh harrier at sunrise
    marsh-harrier
  • A black necked grebe on the lagoon
    grebe
  • A marsh harrier at sunrise
    marsh-harrier
  • A macaw perched on a palm branch
    macaw
  • A caracara looks out across the grass
    Custom text caption
  • A macaw perched on a palm branch
    Custom text caption
  • A fox pup visits a hide
    A fox pup visits a hide
  • A Golden Eagle strikes a pose
    A Golden Eagle strikes a pose

Link types

Lightbox opens the full-size image, attachment page opens the media page, custom URL goes anywhere you choose. Dynamic data tags can also supply the link.
  • A black necked grebe on the lagoon
  • A pair of vultures at the scavenger hide
  • A macaw perched on a palm branch
  • A kite banks in flight
  • A macaw perched on a palm branch
  • A pair of vultures at the scavenger hide
  • A marsh harrier at sunrise
  • A fox pup visits a hide
  • A keel billed toucan

Aspect ratio and object fit

  • A marsh harrier at sunrise
  • A fox pup visits a hide
  • A Golden Eagle strikes a pose
  • A fox pup visits a hide
  • A Golden Eagle strikes a pose
  • A marsh harrier at sunrise
  • A caracara looks out across the grass
  • A kite banks in flight

Daily seed and shared deduplication

Stable for the day: every visitor sees the same selection until midnight UTC. The two elements below share a registry key, so they never repeat each other's images.
  • A pair of vultures at the scavenger hide
  • A macaw perched on a palm branch
  • A keel billed toucan
  • A kite banks in flight
  • A marsh harrier at sunrise
  • A pair of vultures at the scavenger hide
  • A fox pup visits a hide

Other sources

Selected Images: pick exact images from the media library with the gallery picker.
Custom Post Type Query: choose a post type, optional taxonomy and terms, and use each post's featured image or an ACF field. Both demonstrated above.
ACF Field: a gallery field, or a repeater plus its image sub-field, on the current post, a specific post or an options page.
Media category: needs a media taxonomy named media_category (for example from Enhanced Media Library).
Caching: the candidate pool is cached, never the random pick. Use Clear Random Image Cache in the admin bar to refresh at once.

Custom post type query

Four featured images drawn at random from posts in the Birds category. Reload for a new draw.
  • A caracara looks out across the grass
  • A macaw perched on a palm branch
  • A keel billed toucan
  • A pair of vultures at the scavenger hide

ACF field source

Same post query, but each post's image comes from the ACF image field hero_image instead of the featured image.
  • A black necked grebe on the lagoon
  • A fox pup visits a hide
  • A marsh harrier at sunrise
  • An egret strides through a reed bed