Title: B7 Random Images
Author: blogvii
Published: <strong>2024 年 11 月 17 日</strong>
Last modified: 2024 年 11 月 17 日

---

搜尋外掛

![](https://ps.w.org/b7-random-images/assets/banner-772x250.png?rev=3190633)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/b7-random-images/assets/icon-128x128.png?rev=3190633)

# B7 Random Images

 由 [blogvii](https://profiles.wordpress.org/blogvii/) 開發

[下載](https://downloads.wordpress.org/plugin/b7-random-images.1.0.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/b7-random-images/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/b7-random-images/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/b7-random-images/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/b7-random-images/#developers)

 [技術支援](https://wordpress.org/support/plugin/b7-random-images/)

## 外掛說明

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.

## 螢幕擷圖

[⌊Using shortcode⌉⌊Using shortcode⌉[

Using shortcode

[⌊Random image displayed on a page.⌉⌊Random image displayed on a page.⌉[

Random image displayed on a page.

## 安裝方式

 1. Install and activate the plugin from your WordPress Admin Dashboard.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Use the shortcode `[blogvii_random_images media_ids="your_ids" total="number" size
    ="image_size"]` in your posts or pages.

## 常見問題集

### How do I find the media IDs?

You can find the media IDs by going to the Media Library, clicking on an image, 
and checking the URL in the address bar. The ID will be at the end of the URL (e.
g., `post=123` means the ID is 123).

### Can I display more than one image?

Yes, you can specify the `total` parameter to display up to 5 random images.

### Are the images responsive?

Yes, the layout is built with Flexbox CSS, ensuring that images adapt to different
screen sizes.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈B7 Random Images〉的開發相關工作。

參與者

 *   [ blogvii ](https://profiles.wordpress.org/blogvii/)

[將〈B7 Random Images〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/b7-random-images)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/b7-random-images/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/b7-random-images/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/b7-random-images/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/b7-random-images/)。

## 變更記錄

#### 1.0.0 – Release Date 29th Oct 2024

Initial release.

## 中繼資料

 *  版本 **1.0.0**
 *  最後更新 **2 年前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 5.9 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.6.11**
 *  PHP 版本需求 ** 7.2 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/b7-random-images/)
 * 標籤:
 * [gallery](https://tw.wordpress.org/plugins/tags/gallery/)[image](https://tw.wordpress.org/plugins/tags/image/)
   [media](https://tw.wordpress.org/plugins/tags/media/)[random](https://tw.wordpress.org/plugins/tags/random/)
   [random image](https://tw.wordpress.org/plugins/tags/random-image/)
 *  [進階檢視](https://tw.wordpress.org/plugins/b7-random-images/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/b7-random-images/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/b7-random-images/reviews/)

## 參與者

 *   [ blogvii ](https://profiles.wordpress.org/blogvii/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/b7-random-images/)