Title: Really Simple Gallery Widget
Author: Helen Hou-Sandi
Published: <strong>2011 年 1 月 27 日</strong>
Last modified: 2017 年 8 月 9 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/really-simple-gallery-widget.svg)

# Really Simple Gallery Widget

 作者：[Helen Hou-Sandi](https://profiles.wordpress.org/helen/)

[下载](https://downloads.wordpress.org/plugin/really-simple-gallery-widget.1.4.zip)

 * [详情](https://cn.wordpress.org/plugins/really-simple-gallery-widget/#description)
 * [评价](https://cn.wordpress.org/plugins/really-simple-gallery-widget/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/really-simple-gallery-widget/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/really-simple-gallery-widget/#developers)

 [支持](https://wordpress.org/support/plugin/really-simple-gallery-widget/)

## 描述

Really Simple Gallery Widget adds a widget to display images from the Media Library,
no extra uploading or creating custom post types required. You can choose to show
images from a specific post/page, the entire media library, or a specific set of
attachment IDs. On single pages/posts, you can also show only images attached to
the item currently being viewed. Especially helpful if your galleries are based 
on what’s attached to a post and you want to be able to easily display those images
in a widget area.

#### Features

 * Add as many widgets as you want, wherever you want
 * Display images from a specific post/page, the entire Media Library, or a specific
   set of attachment IDs
 * Display images from the post/page currently being viewed
 * Select a number of images
 * Select any registered size in WordPress
 * Display the images in various orders
 * Show or hide captions
 * Link the images to the original file, post, anchor in the post, attachment page,
   or nothing. NOTE: If the image is not attached to a post, the file link will 
   be used instead of the post or anchor in the post.
 * Add a prefix to the link and image title (appears as a tooltip)
 * Use a rel attribute for the link – great for lightboxes

## 屏幕截图

 * [[
 * Widget options
 * [[
 * Sample display in Twenty Twelve with minimal styling added for spacing

## 安装

Really Simple Gallery Widget is most easily installed automatically via the Plugins
tab in your blog administration panel.

#### Manual Installation

 1. Upload the `really-simple-gallery-widget` folder to the `/wp-content/plugins/` 
    directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Head over to Appearance → Widgets to set up one or more Really Simple Gallery Widgets

## 常见问题

  Installation Instructions

Really Simple Gallery Widget is most easily installed automatically via the Plugins
tab in your blog administration panel.

#### Manual Installation

 1. Upload the `really-simple-gallery-widget` folder to the `/wp-content/plugins/` 
    directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Head over to Appearance → Widgets to set up one or more Really Simple Gallery Widgets

  How does this work with the new-style galleries introduced in WP 3.5?

For the time being, galleries that use the ids parameter (similar to the already-
existing include parameter) will not influence the widget unless you copy-paste 
the list of IDs and use the Attachment IDs option. Old style galleries that would
just use the `[gallery]` shortcode will work as expected, as will images attached/
uploaded to a post. This has to do with how attachments work in WordPress, which
is the basis for this plugin. New-style galleries no longer depend on attachments
to a specific post.

  Why won’t images I’ve hotlinked or copy-pasted into my content appear?

This widget can only grab images that were uploaded into your Media Library. See
the [WordPress Codex](https://codex.wordpress.org/Using_Image_and_File_Attachments#Attachment_to_a_Post)
for more information.

  Why is the wrong kind of link being used?

The image is probably not associated with a post or page and will default to linking
to the file if a link option is chosen. To associate (attach) an image with a post
or page, go to your Media Library and click on the Unattached link next to the item
to choose a post to attach it to. See the [WordPress Codex](https://codex.wordpress.org/Using_Image_and_File_Attachments#Attachment_to_a_Post)
for more information. The link behavior can be altered via filter.

  How do I get the ID for the post or page?

The easiest way is to mouseover or click an edit link for the post or page in question.
The ID number will appear in the URL; e.g. `http://yoursite.com/wp-admin/post.php?
post=41&action=edit` indicates that the ID of the post or page you want to reference
is 41.

  Why is the anchor link not working?

The anchor link relies on the ID that WordPress automatically generates when you
insert an image with a caption. If you inserted the image manually or without a 
caption, the anchor won’t jump you to the spot in the page. The ability to specify
an anchor may be added at a later time, or you can just add the ID (attachment_##)
to the img tag.

  I selected a registered size but the images are showing up huge or in the wrong
size.

The images may be missing the thumbnails of that size and by default will pull the
full size image instead. Try using Viper007Bond’s fantastic [Regenerate Thumbnails](https://wordpress.org/extend/plugins/regenerate-thumbnails/)
plugin to create new versions for any new or changed image sizes.

  How can I make the widget look prettier?

See [Styling the Really Simple Gallery Widget](http://helen.wordpress.com/2011/02/styling-the-really-simple-gallery-widget/)
for more information and some examples of what you might do.

## 评价

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

### 󠀁[best gallery widget …](https://wordpress.org/support/topic/best-gallery-widget/)󠁿

 [muchfun](https://profiles.wordpress.org/muchfun/) 2017 年 10 月 14 日

.. and I tried some … It works perfect, it is easy to use. Thanks for the work, 
Helen 🙂

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

### 󠀁[Great plugin, unfortunately not work latest WordPress](https://wordpress.org/support/topic/great-plugin-unfortunately-not-work-latest-wordpress/)󠁿

 [Sonjoe](https://profiles.wordpress.org/sonjoe/) 2016 年 10 月 28 日

Such a great plugin. Unfortunately, no longer works showing pictures by the Specific
Post/Page ID.

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

### 󠀁[Simply works](https://wordpress.org/support/topic/simply-works-135/)󠁿

 [](https://profiles.wordpress.org/m00kie/) 2017 年 2 月 7 日

Thanks for this plugin. Needed to find something that was really simple, you did
it.

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

### 󠀁[Really Simple](https://wordpress.org/support/topic/really-simple-29/)󠁿

 [Den999](https://profiles.wordpress.org/den999/) 2017 年 2 月 7 日

yep. simple 🙂

 [ 阅读所有11条评价 ](https://wordpress.org/support/plugin/really-simple-gallery-widget/reviews/)

## 贡献者及开发者

「Really Simple Gallery Widget」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Helen Hou-Sandi ](https://profiles.wordpress.org/helen/)

[帮助将「Really Simple Gallery Widget」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/really-simple-gallery-widget)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/really-simple-gallery-widget/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/really-simple-gallery-widget/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/really-simple-gallery-widget/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/really-simple-gallery-widget/)。

## 更新日志

#### 1.4

 * Updated widget constructor to no longer throw notices.
 * Respect the “none” link type (props @sergeybiryukov).
 * Minor code cleanup.

#### 1.3

 * Fixed a bug caused by assuming that image sizes are named key-style.
 * Added two actions: `rsgw_before_widget` and `rsgw_after_widget`.

#### 1.2

**Fixed**

 * Caption no longer always shows the one for the last image queried.
 * Can now be used on custom post types.

**New**

 * Mostly rewritten code – no notices, cleaner with coding standards, more sane 
   data sanitization.
 * More intuitive interface for specifying where to select images from, including
   a new option to specify image attachment IDs
 * Additional option for what to order by.
 * Text before link title and link rel attribute are hdiden under “Advanced Options”
   to reduce some of the visual weight of the widget options.
 * Better markup – now using dl/dt/dd, with filterable classes. The original classes
   should remain, but styling may change or break depending on how your CSS was 
   written.

**Filters!**

 * `rsgw_from_options`
 * `rsgw_order_options`
 * `rsgw_orderby_options`
 * `rsgw_link_type_options`
 * `rsgw_image_size_options`
 * `rsgw_instance_defaults`
 * `rsgw_query_args`
 * `rsgw_images`
 * `rsgw_dl_class`
 * `rsgw_dt_class`
 * `rsgw_dd_class`
 * `rsgw_image_link_url`

#### 1.1

 * New options for entire media library and single post/page
 * HTML output cleanup
 * Better security
 * Smaller memory footprint (hopefully)

#### 1.0

 * First version

## 额外信息

 *  版本 **1.4**
 *  最后更新：**9 年前**
 *  活跃安装数量 **700+**
 *  WordPress 版本 ** 2.8 或更高版本 **
 *  已测试的最高版本为 **4.8.28**
 *  语言
 * [English (US)](https://wordpress.org/plugins/really-simple-gallery-widget/)
 * 标签
 * [gallery](https://cn.wordpress.org/plugins/tags/gallery/)[widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/really-simple-gallery-widget/advanced/)

## 评级

 4.9 星（最高 5 星）。

 *  [  9 条 5 星评价     ](https://wordpress.org/support/plugin/really-simple-gallery-widget/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/really-simple-gallery-widget/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/really-simple-gallery-widget/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/really-simple-gallery-widget/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/really-simple-gallery-widget/reviews/?filter=1)

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

[查看全部评论](https://wordpress.org/support/plugin/really-simple-gallery-widget/reviews/)

## 贡献者

 *   [ Helen Hou-Sandi ](https://profiles.wordpress.org/helen/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/really-simple-gallery-widget/)