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

FX random image

描述

Plugin creates widget that displays one random image from current page or post attached images, or from any page or post set by ID. You can set size of image to display.

Displays a random image from post or page you specify. Plugin creates FX-Random-image widget. Use widget to add image to sidebar or add <?php FX_Random_Image($pageID, $link, $size); ?> function to theme. $pageID is page/post ID from there to take images, if $link = true adds link to image, $link = false no link on image, $size – image size (‘thumbnail’, ‘medium’ or ‘large’). Example <?php FX_Random_Image(1, false, 'large'); ?>

安裝

  1. Upload plugin-name.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Use Widget to add image to widget area or place <?php FX_random_image(); ?> code in your templates

常見問題

How to use it?

Use Widget to add to sidebar and set pageID in widget.

Or place <?php FX_random_image($pageID, $link, $size); ?> code in your templates

$pageID – page/post ID from there to take images
$link – if $link = true adds link to image, $link = false no link on image
$size – image size (‘thumbnail’, ‘medium’ or ‘large’)

Example <?php FX_Random_Image(1, false, 'large'); ?>

貢獻者及開發者

“FX random image” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 FX random image 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.0.1

  • Fixed some description.

1.0.0

  • New versions started.