This plugin is outdated and might not be supported anymore
B7 Random Images

B7 Random Images

Details
View on WordPress

B7 Random Images allows you to display a selection of random images from your media library on any post or page using a simple shortcode. You can easily choose the images you want to display by specifying their media IDs, the total number of images to show, and the size of the images.

Parameters

  • media_ids: (string) A comma-separated list of media attachment IDs (required).
  • total: (integer) The number of random images to display (default: 1, max: 5).
  • size: (string) The size of the images (default: ‘full’). Options include ‘thumbnail’, ‘medium’, ‘large’, ‘full’.

How to use and examples

To use the B7 Random Images plugin, follow these simple steps:

  1. Insert the Shortcode: Add the shortcode to your post or page where you want the random images to appear. The basic format is:
  • media_ids: Replace "1,2,3,4,5" with the actual IDs of the images you want to display, separated by commas.
  • total: Specify the number of random images to show (between 1 and 5). For example, total="3" will display 3 random images.
  • size: Choose the size of the images. Options include thumbnail, medium, large, or full. The default is full.
  1. Example Usage: Here are a few examples of how to use the shortcode:
  • To display 2 random images from specific media IDs in full size:
    [blogvii_random_images media_ids="10,20,30" total="2" size="full"]

  • To display 5 random images in medium size:
    [blogvii_random_images media_ids="5,15,25,35,45" total="5" size="medium"]

  1. View the Results: After adding the shortcode, preview or publish your post/page to see the random images displayed.

Details

Plugin code:
b7-random-images
Plugin version:
1.0.0
Author:
Outdated:
Yes
WP version:
5.9 or higher
PHP version:
7.2 or higher
Test up to WP version:
6.6.2
Total installations:
0
Last updated:
2024-11-17
Rating:
Times rated:
0
gallery
image
media
random
random-image