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

WordPress Random Image

描述

Displays a Random Image from the Post Attachment Gallery/ Page Attachement Gallery / Custom Media Library Items. Easy Implementing Shortcode is available.

WordPress Random Image

Customize according to your Need.

This WordPress Random Image Plugin could be implemented even under theme development.

  • Very Easy to implement.
  • Simple Shortcode Available

WordPress Random Image Documentation

WordPress Random Image By Mervin Praison

SEO Manager

Version history

Version 1.0

  • Initial release version.

Version 2.0

  • Added Alt Tag on to Images.

螢幕截圖

  • Finding Attachment ID
  • Default Wordpress Gallery Option ( Images from this Gallery will get displayed Randomly on using the shortcode [random-image]

安裝

Step 1

  1. Download the zip file
  2. Extract the contents
  3. Upload the folder random-image to your WP plugin folder /wp-content/plugins/ directory
  4. Go to Plugins > Plugins, and activate the plugin

Step 2

  • Use this shortcode ‘[random-image]’ on your page/post content.
  • Use this shortcode ‘[random-image attachmentids=” list of Attachment IDS “]’ on your page/post content.
  • Use this shortcode ‘[random-image postid=” Enter Post ID ” ] on your page/post content.
  • Add Image Alternative Text (Alt tag) on to indivitual media file at the backend (on “Media” tab).
  • Code and detailed installation procedure can been seen on the following link

WordPress Random Image By Mervin Praison

Note

  • Either use Attachment ID’s or Post ID as the attribute.
  • On using both the attributes, Attachment ID’s will be preferred.

常見問題

What is its Shortcode?

[random-image]

WordPress Random Image By Mervin Praison

評價

2017年7月19日
I'm on WordPress 4.8. I followed the (rather sketchy..) installation instructions - then tried the shortcode on a) A Page, b) a Widget (text widget) - and c) Using all of the advised ways in which you can publish the short code. ZERO results, regardless of how I did it. "Division by Zero" PHP on-screen errors most of the time. I guess it's possible I missed something.. but I don't think so. Avoid..
閱讀全部7個評價

貢獻者及開發者

“WordPress Random Image” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 WordPress Random Image 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

Version 1.0

  • First release.

Version 2.0

  • Added Alt Tag on to Images.= 1.0 =

  • Shortcode was created

  • Shortcode with attachment ID
  • Shortcode with post ID

WordPress Random Image By Mervin Praison

2.0

  • Added Alt Tag on to Images.