Title: Image Roulette &#8211; Random Image Block
Author: Mark Westguard
Published: <strong>2025 年 10 月 18 日</strong>
Last modified: 2025 年 10 月 22 日

---

搜尋外掛

![](https://ps.w.org/image-roulette/assets/banner-772x250.jpg?rev=3380658)

![](https://ps.w.org/image-roulette/assets/icon-256x256.jpg?rev=3380658)

# Image Roulette – Random Image Block

 由 [Mark Westguard](https://profiles.wordpress.org/westguard/) 開發

[下載](https://downloads.wordpress.org/plugin/image-roulette.1.0.0.zip)

[即時預覽](https://tw.wordpress.org/plugins/image-roulette/?preview=1)

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

 [技術支援](https://wordpress.org/support/plugin/image-roulette/)

## 外掛說明

Image Roulette is a plugin that allows you to create galleries from your Media Library
and display a random image from those galleries using either shortcodes or Gutenberg
blocks. Perfect for displaying rotating testimonials, featured products, random 
artwork, or any content where you want to show variety.

#### Features

 * **Create Custom Galleries**: Organize your Media Library images into custom galleries
 * **Random Image Display**: Show a different image each time the page loads
 * **Gutenberg Block Support**: Native block editor integration
 * **Shortcode Support**: Use anywhere shortcodes are supported
 * **Flexible Image Sizing**: Choose from registered image sizes or set custom dimensions
 * **Aspect Ratio Preservation**: Smart resizing that maintains image proportions
 * **Accessibility Ready**: Full support for alt text, captions, and screen readers
 * **User-Friendly Admin**: Intuitive interface for managing galleries
 * **Bulk Operations**: Select, edit, and delete multiple images at once

#### Usage

**Creating a Gallery:**
 1. Go to Settings  Image Roulette in your admin dashboard
2. Click “Create New Gallery” 3. Enter a gallery name 4. Select images from your
Media Library 5. Save your gallery

**Using the Block:**
 1. Add the “Image Roulette” block to any page or post 2. Select
your gallery from the dropdown 3. Configure image size settings 4. Publish your 
content

**Using the Shortcode:**
 [imagro id=”gallery_1″]

**Shortcode Parameters:**
 * `id` – Gallery ID (required) * `size` – Registered 
image size (thumbnail, medium, large, full) * `width` – Custom width in pixels *`
height` – Custom height in pixels

**Examples:**
 * `[imagro id="gallery_123" size="large"]` * `[imagro id="gallery_123"
width="300"]` * `[imagro id="gallery_123" width="400" height="300"]`

### Credits

This plugin was inspired by a request from @michelleames for speednetworkonline.
com to create an accessible random image block.

## 螢幕擷圖

[⌊Gallery management interface⌉⌊Gallery management interface⌉[

Gallery management interface

[⌊Gutenberg block settings panel with sizing options⌉⌊Gutenberg block settings panel
with sizing options⌉[

Gutenberg block settings panel with sizing options

[⌊Example of random image display on frontend⌉⌊Example of random image display on
frontend⌉[

Example of random image display on frontend

## 適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

 *   Image Roulette

## 安裝方式

 1. Upload the plugin files to the `/wp-content/plugins/image-roulette` directory, 
    or install the plugin through the plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen
 3. Use the Settings  Image Roulette screen to create your first gallery

## 常見問題集

### Can I use multiple galleries on the same page?

Yes! You can use as many Image Roulette shortcodes or blocks as you want on a single
page, each displaying from different galleries.

### Do images maintain their aspect ratio when resized?

Yes, when using custom width or height (setting one to 0), the plugin automatically
calculates the other dimension to maintain the original aspect ratio.

### Is the plugin accessible?

Absolutely! Image Roulette includes full support for alt text, image titles, captions,
and follows web accessibility standards.

### Can I style the output?

Yes, the plugin outputs clean HTML with CSS classes that you can style:
 * `.imagro-
image` – Main container * `.imagro-error` – Error messages

## 使用者評論

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

## 參與者及開發者

以下人員參與了開源軟體〈Image Roulette – Random Image Block〉的開發相關工作。

參與者

 *   [ Mark Westguard ](https://profiles.wordpress.org/westguard/)

〈Image Roulette – Random Image Block〉外掛目前已有 1 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/image-roulette/contributors)
為這個外掛做出的貢獻。

[將〈Image Roulette – Random Image Block〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/image-roulette)

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

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

## 變更記錄

#### 1.0.0

 * Initial release
 * Gallery creation and management
 * Gutenberg block support
 * Shortcode support
 * Custom image sizing
 * Accessibility features
 * Bulk image operations

## 中繼資料

 *  版本 **1.0.0**
 *  最後更新 **9 個月前**
 *  啟用安裝數 **50+**
 *  WordPress 版本需求 ** 5.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.8.5**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/image-roulette/) 及 [Swedish](https://sv.wordpress.org/plugins/image-roulette/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/image-roulette)
 * 標籤:
 * [blocks](https://tw.wordpress.org/plugins/tags/blocks/)[gallery](https://tw.wordpress.org/plugins/tags/gallery/)
   [images](https://tw.wordpress.org/plugins/tags/images/)[media](https://tw.wordpress.org/plugins/tags/media/)
   [random](https://tw.wordpress.org/plugins/tags/random/)
 *  [進階檢視](https://tw.wordpress.org/plugins/image-roulette/advanced/)

## 評分

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

[Your review](https://wordpress.org/support/plugin/image-roulette/reviews/#new-post)

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

## 參與者

 *   [ Mark Westguard ](https://profiles.wordpress.org/westguard/)

## 技術支援

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

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