Hot Random Image

外掛說明

Hot Random Image plugin by Hot Themes is a basic widget that shows a randomly picked image from a selected folder where images are stored. You can define a folder and widget will show all images from this folder in random order. Also, it’s possible to select only certain images from the folder that will be added in rotation. Each image can be linked. Alt text is optional. Image dimensions (width and height) can be defined in any format (pixels, percents, auto-mode…). Therefore, this widget is appropriate for all responsive websites.

螢幕擷圖

  • Sample screen shot of the Hot Random Image widget.
  • Screen shot of the Hot Random Image widget parameters.

安裝方式

  1. Install plugin as usually from WordPress.org. You can also manually download it, unpack and upload plugin_hot_random_image directory to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Publish Hot Random Image widget into the available widget sidebars or use shortcode to include it in your posts.
  4. To get some images displayed, you should enter a folder where your images are stored. This can be any folder from your site.
  5. In the widget options, you can see other parameters that defines the widget’s output. Experiment with these options to configure the widget for your site.
  6. If you want to add shortcode inside your posts, use this format [randomimage path="images/random" width="100%" height="auto" alt="Random image" link="https://yourwebsite.com/"] where the first parameter is folder with images (relative path from WordPress root folder), the second parameter is image width (if not set, value 100% will be used), the third parameter is image height (if not set, value auto will be used), the fourth parameter is ALT text (optional) and the fifth parameter is link of the images (optional).

常見問題集

How to use the plugin in a widget position?

Go to Appearance > Widgets and drop Hot Random Image widget into any widget position. Then open it to see the widget options. Enter folder where your images are uploaded, relative to your WordPress installation. In example “wp-content/uploads/2014/12”.

How to use the plugin as shortcode?

If you want to add shortcode inside your posts, use this format [randomimage path="images/random" width="100%" height="auto" alt="Random image" link="https://yourwebsite.com/"] where the first parameter is folder with images (relative path from WordPress root folder), the second parameter is image width (if not set, value 100% will be used), the third parameter is image height (if not set, value auto will be used), the fourth parameter is ALT text (optional) and the fifth parameter is link of the images (optional).

The plugin doesn’t show any images?

Make sure you entered a valid folder where your images are uploaded. It should be relative to your WordPress root folder.

使用者評論

2023 年 4 月 9 日 1 則留言
The plugin works perfectly as it should.It would be nice to be able to display randomly several images.I can do it by using several times the widget, but then the same image may be displayed more than once.
2022 年 10 月 24 日
Worked for me. I used this to create an advertisement banner in the footer section. Each time when you refresh the page, you will get a new image.
2016 年 9 月 3 日
Got it working but not 5 stars because I couldn't work out the syntax for image name plus image link. A screenshot example would be nice.
閱讀全部 7 則使用者評論

參與者及開發者

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

參與者

將〈Hot Random Image〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.7

  • New shortcode format added

1.6

  • Various enhancements in plugin code

1.5

  • Various enhancements in plugin code

1.4

  • Shortcode added

1.3

  • Various enhancements in plugin code

1.2

  • Methods name bug fixes

1.1

  • Various enhancements in plugin code

1.0

  • The initial release