Title: Random Gallery
Author: David G
Published: <strong>2015年3月23日</strong>
Last modified: 2023年4月2日

---

プラグインを検索

![](https://ps.w.org/random-gallery/assets/banner-772x250.png?rev=1130434)

このプラグインは **WordPress の最新3回のメジャーリリースに対してテストされていま
せん**。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress
で使用した場合は互換性の問題が発生する可能性があります。

![](https://ps.w.org/random-gallery/assets/icon-256x256.png?rev=1130541)

# Random Gallery

 作者: [David G](https://profiles.wordpress.org/david-greenwold/)

[ダウンロード](https://downloads.wordpress.org/plugin/random-gallery.zip)

 * [詳細](https://ja.wordpress.org/plugins/random-gallery/#description)
 * [レビュー](https://ja.wordpress.org/plugins/random-gallery/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/random-gallery/#installation)
 * [開発](https://ja.wordpress.org/plugins/random-gallery/#developers)

 [サポート](https://wordpress.org/support/plugin/random-gallery/)

## 説明

Random Gallery lets you display a different subset of your images every time your
page is refreshed. Just tell it which ones you want it to pick from and how many
you want to show at a time.

#### The Basics

Random Gallery works with an old fashioned shortcode. You specify the pool of images
with the `ids` or `category` parameter. Then you specify how many you want to show
with the `shownum` parameter.

Here’s an example of the `ids` method:

    ```
    [random-gallery ids='101,102,103,104,105' shownum='3']
    ```

Note there are five images in the list but only three will be shown at a time.

And here is an example of the `category` method:

    ```
    [random-gallery category='myCategory' shownum='3']
    ```

Random Gallery can handle the ordinary Gallery shortcode parameters `columns`, `
size`, and `link`:

    ```
    [random-gallery category='myCategory' shownum='3' columns='1' size='medium' link='none']
    ```

You can put shortcodes in all kinds of blocks, but it’s best to use the shortcode
widget.

#### ids method details

The `ids` parameter is the list of images you want to draw from. To build up the
list, you need the numbers that WordPress assigns to each of your images.

There are plugins that let you see these numbers directly in the Media Library. 
Try searching the plugins directory for “reveal ids”.

Otherwise, you can find them manually:

 * open up your Media Library
 * click on a photo
 * the Attachment Details will pop up
 * the URL in your address bar will look like this: `https://www.example.com/wp-
   admin/upload.php?item=101`
 * take the number at the end of the URL (in this case 101) and add that number 
   to `ids`
 * repeat this process for each photo you want to include

#### category method

By default, categories are not available in the Media Library. However, there are
plugins that will enable them. Try searching the plugins directory for “media library
categories”.

Once you have categories enabled, you can create a category, add images to it, and
specify it in the shortcode by name.

### Curly Quotes Issue

One tricky thing to watch out for is curly quotation marks. WordPress likes to replace
straight quotes (`'`) with curly quotes (‘). This is usually a good thing, but Random
Gallery can only handle straight quotes.

The easiest and best way to make sure you’re only using straight quotes is to put
your shortcode in a shortcode widget, then re-type all the quotes directly in the
widget.

### Thanks

I hope Random Gallery works for you. If you have any trouble, just shoot me an email.
Thanks!

## インストール

You can add Random Gallery directly from your WordPress dashboard Plugins page or
you can download random-gallery.php and put it in the wp-content/plugins/ directory
of your WordPress installation. Either way, make sure you activate it from the Plugins
page.

## FAQ

### What if I have a question?

I’d be happy to help!
 [randomgallery@greenwold.com](https://ja.wordpress.org/plugins/random-gallery/randomgallery@greenwold.com?output_format=md)

### What if I have a suggestion?

That would be most welcome!
 [randomgallery@greenwold.com](https://ja.wordpress.org/plugins/random-gallery/randomgallery@greenwold.com?output_format=md)

### What if I find a bug?

Please let me know right away!
 [randomgallery@greenwold.com](https://ja.wordpress.org/plugins/random-gallery/randomgallery@greenwold.com?output_format=md)

## 評価

![](https://secure.gravatar.com/avatar/537cbc29fb6005d997ba0464522efabe37e894e721cdd1d6cb53f5af6a10ec2d?
s=60&d=retro&r=g)

### 󠀁[DO WHAT YOU WANT](https://wordpress.org/support/topic/do-what-you-want-2/)󠁿

 [ebuege](https://profiles.wordpress.org/ebuege/) 2022年7月19日

yes this great plugin do what you want. Gives me a tones of design alternates with
random properties.. clean and lightweight code with good performance

![](https://secure.gravatar.com/avatar/f95fc391b37a1371667017c09872263a852e217303dbc5a9ec95f1a1817cbe87?
s=60&d=retro&r=g)

### 󠀁[Great plugin](https://wordpress.org/support/topic/great-plugin-33478/)󠁿

 [Marcel de Korte](https://profiles.wordpress.org/dekortemarcel/) 2022年2月20日

Works great and is easy to work with. Hopefully the creator will keep this plugin
update 🙂

![](https://secure.gravatar.com/avatar/448799348044a0815ee434a5b8f0bf0cfb9850659548a6551ef7cfae8bf49f9d?
s=60&d=retro&r=g)

### 󠀁[It does not work](https://wordpress.org/support/topic/it-does-not-work-109/)󠁿

 [inMountains](https://profiles.wordpress.org/lawdreen/) 2021年11月1日 1 reply

It shows the same pictures, never change.

![](https://secure.gravatar.com/avatar/ee5b9086d7dbc3a3d84c3ba63cf0e9a16e218cf9072902e88df7f07e61fe3e9c?
s=60&d=retro&r=g)

### 󠀁[Great Response Time](https://wordpress.org/support/topic/great-response-time-4/)󠁿

 [element30](https://profiles.wordpress.org/element30/) 2021年4月14日

Author’s response time is commendable. Only issue I have is once you click on an
image and it expands you can’t get out or see the next one easily. More options 
would be nice.

![](https://secure.gravatar.com/avatar/d72c210bbaf11f1f96446406dfe11eb1da7711ee50ebc27464fdf62eb5757260?
s=60&d=retro&r=g)

### 󠀁[Does what it says!](https://wordpress.org/support/topic/does-what-it-says-1007/)󠁿

 [glynmthomas](https://profiles.wordpress.org/glynmthomas/) 2021年3月28日

Very happy

![](https://secure.gravatar.com/avatar/83084f0417999faf1fe65aa77d68851e05e1b3881433696bab386c56d024f491?
s=60&d=retro&r=g)

### 󠀁[Fast & easy](https://wordpress.org/support/topic/fast-easy-24/)󠁿

 [andrewm57](https://profiles.wordpress.org/andrewm57/) 2021年2月25日

I needed a simple sidebar gallery widget and this fits the bill perfectly. It’s 
straightforward to use the shortcode. My sole question was answered by the developer
within a few hours.

 [ 11件のレビューをすべて表示 ](https://wordpress.org/support/plugin/random-gallery/reviews/)

## 貢献者と開発者

Random Gallery はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献
しています。

貢献者

 *   [ David G ](https://profiles.wordpress.org/david-greenwold/)
 *   [ david-g ](https://profiles.wordpress.org/david-g/)

[“Random Gallery” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/random-gallery)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/random-gallery/)するか、
[SVN リポジトリ](https://plugins.svn.wordpress.org/random-gallery/)をチェックする
か、[開発ログ](https://plugins.trac.wordpress.org/log/random-gallery/)を [RSS](https://plugins.trac.wordpress.org/log/random-gallery/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 00.08

Adds support for PHP 8. Drops support for Gallery shortcode parameter ‘type’. Updates
the readme and testing.

#### 00.07

Bug fix: categories no longer limited to a shownum of 5. Updated the readme and 
testing.

#### 00.06

Added support for categories. Added a donate link. Updated the readme and testing.

#### 00.05

No change to the code. Just updated the readme and testing.

#### 00.04

No change to the code. Just updated the readme and testing.

#### 00.03

No change to the code. Just updated the readme and testing.

#### 00.02

Added support for type, columns, size, and link.

Miscellaneous code and documentation improvements.

Fixed bug that was forcing the gallery to the top of the page.

#### 00.01

Added header and comments.

#### 00.00

Just the code. Made for and deployed on client’s website.

## メタ

 *  バージョン **00.08**
 *  最終更新日 **3年前**
 *  有効インストール数 **200+**
 *  WordPress バージョン ** 3.0.1またはそれ以降 **
 *  検証済み最新バージョン: **6.2.9**
 *  言語
 * [English (US)](https://wordpress.org/plugins/random-gallery/)
 * タグ
 * [category](https://ja.wordpress.org/plugins/tags/category/)[gallery](https://ja.wordpress.org/plugins/tags/gallery/)
   [images](https://ja.wordpress.org/plugins/tags/images/)[random](https://ja.wordpress.org/plugins/tags/random/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/random-gallery/advanced/)

## 評価

 5つ星中4.5つ星

 *  [  8 5-星レビュー     ](https://wordpress.org/support/plugin/random-gallery/reviews/?filter=5)
 *  [  2 4-星レビュー     ](https://wordpress.org/support/plugin/random-gallery/reviews/?filter=4)
 *  [  0 3-星レビュー     ](https://wordpress.org/support/plugin/random-gallery/reviews/?filter=3)
 *  [  0 2-星レビュー     ](https://wordpress.org/support/plugin/random-gallery/reviews/?filter=2)
 *  [  1 1-星レビュー     ](https://wordpress.org/support/plugin/random-gallery/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/random-gallery/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/random-gallery/reviews/)

## 貢献者

 *   [ David G ](https://profiles.wordpress.org/david-greenwold/)
 *   [ david-g ](https://profiles.wordpress.org/david-g/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/random-gallery/)

## 寄付

このプラグインが今後も改善できるよう応援しませんか ?

 [ このプラグインに寄付 ](https://paypal.me/randomgallery)