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

Random Image Selector

描述

This plugin will generate an tag for a random image selected from a specified folder.

Setup Instructions

  1. Extract randomImage.php into your wp-content/plugins folder (or a subfolder)
  2. Activate the plugin in WordPress
  3. On the options screen, select the “Random Image” menu
  4. Fill in the values for your physical and http paths
  5. Select scaling options (optional)
  6. Add some code to whatever page you want to display the image. This is a great way to
    customize the header image for your wordpress installation. The plugin will look in
    the folder and randomly select a header image to display.

Sample Code

By placing code like the following in your header, it will create an image tag for you
based on the images in the specified folder.

<?php
if (function_exists(‘generateRandomImgTag’))
{
generateRandomImgTag();
}
?>

<!–
The lines above are for the HTML documentation (online)

–>

This code will ensure that the function exists (ie the plugin is active and working) and
call it if it’s working correctly. If the function is missing, or the plugin has been
removed then the call will be ignored, and no errors will result.

Feedback

kdmurray.at.kdmurray.dot.net

評價

There are no reviews for this plugin.

貢獻者及開發者

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

貢獻者

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

對開發相關資訊感興趣?

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