Contributors: helen
Tags: gallery, widget
Requires at least: 2.8
Tested up to: 4.8.1
Stable tag: 1.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Simple widget for displaying images from the Media Library with plenty of configurable options.
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.
- 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
Really Simple Gallery Widget is most easily installed automatically via the Plugins tab in your blog administration panel.
- Upload the
really-simple-gallery-widget
folder to the/wp-content/plugins/
directory - Activate the plugin through the 'Plugins' menu in WordPress
- Head over to Appearance → Widgets to set up one or more Really Simple Gallery Widgets
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.
This widget can only grab images that were uploaded into your Media Library. See the WordPress Codex for more information.
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 for more information. The link behavior can be altered via filter.
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.
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.
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 plugin to create new versions for any new or changed image sizes.
See Styling the Really Simple Gallery Widget for more information and some examples of what you might do.
- Widget options
- Sample display in Twenty Twelve with minimal styling added for spacing
- Updated widget constructor to no longer throw notices.
- Respect the "none" link type (props @sergeybiryukov).
- Minor code cleanup.
- Fixed a bug caused by assuming that image sizes are named key-style.
- Added two actions:
rsgw_before_widget
andrsgw_after_widget
.
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
- New options for entire media library and single post/page
- HTML output cleanup
- Better security
- Smaller memory footprint (hopefully)
- First version
Major update - bugs fixed, features added. You may need to tweak any custom styling.
More display options