Hot Random Image is a basic widget that shows a randomly picked image from a selected folder where images are stored.
Hot Random Image by Hot Themes is a basic plugin that shows a randomly picked image from a selected folder where images are stored. You can define a folder and the plugin will show all the images from this folder in a random order. Also, it’s possible to select only certain images from the folder that will be added in rotation. Each image can be linked. Alt text is optional. Image dimensions (width and height) can be defined in any format (pixels, percents, auto-mode…). Therefore, this plugin is appropriate for all responsive websites.
[randomimage path="images/random" width="100%" height="auto" alt="Random image" link="https://yourwebsite.com/"]
where the first parameter is folder with images (relative path from WordPress root folder), the second parameter is image width (if not set, value 100% will be used), the third parameter is image height (if not set, value auto will be used), the fourth parameter is ALT text (optional) and the fifth parameter is link of the images (optional).Make sure that the Hot Random Image plugin is installed and active. Edit your page/post and when inserting a new block, search for “random image”. Click on the icon to add the block. Set block parameters per your requirements.
If you want to add shortcode inside your posts, use this format [randomimage path="images/random" width="100%" height="auto" alt="Random image" link="https://yourwebsite.com/"]
where the first parameter is folder with images (relative path from WordPress root folder), the second parameter is image width (if not set, value 100% will be used), the third parameter is image height (if not set, value auto will be used), the fourth parameter is ALT text (optional) and the fifth parameter is link of the images (optional).
Go to Appearance > Widgets and drop Hot Random Image widget into any widget position. Then open it to see the widget options. Enter folder where your images are uploaded, relative to your WordPress installation. In example “wp-content/uploads/2024/01”.
Make sure you entered a valid folder where your images are uploaded. It should be relative to your WordPress root folder.
Your website probably uses cache. Therefore, the same (cached) image is always displayed. Make sure that the page where the plugin in published is not cached.