该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的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.