[WordPress] 外掛分享: B7 Random Images

首頁外掛目錄 › B7 Random Images
WordPress 外掛 B7 Random Images 的封面圖片
全新外掛
安裝啟用
尚無評分
485 天前
最後更新
問題解決
WordPress 5.9+ PHP 7.2+ v1.0.0 上架:2024-11-16

內容簡介

**總結:**
B7 Random Images 外掛讓你可以透過簡單的短碼在任何貼文或頁面上展示來自媒體庫的隨機圖片。你可以藉由指定媒體 ID、圖片總數以及圖片尺寸來輕鬆選擇要展示的圖片。

**問題與答案:**
1. 如何使用 B7 Random Images 外掛展示特定媒體 ID 的 2 張全尺寸隨機圖片?
- 回答:在貼文或頁面中加入以下短碼:[blogvii_random_images media_ids="10,20,30" total="2" size="full"]

2. 如果要在媒體庫中選擇 5 張中尺寸隨機圖片,應該如何使用短碼?
- 回答:輸入以下短碼到貼文或頁面中:[blogvii_random_images media_ids="5,15,25,35,45" total="5" size="medium"]

3. 在加入短碼後,如何查看展示的隨機圖片?
- 回答:加入短碼後,預覽或發佈貼文/頁面以查看展示的隨機圖片。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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:

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.

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"]

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

延伸相關外掛

文章
Filter
Mastodon