Simple Photo Albums turns a group of native gallery shortcodes into photo albums with cover images and allows for advanced integration with scripts like Jetpack’s Carousel or Swipebox.
Wrap a group of
[gallery] shortcodes with the
[simple_photo_album] [gallery ids="1,2,3"] [gallery ids="4,5,6"] [gallery ids="7,8,9"] [/simple_photo_album]
Each gallery becomes an album and requires clicking through to see the actual gallery itself. This example will render the same as
[gallery ids="1,4,7"], which admittedly isn’t very useful.
However, there are a few attributes that may be beneficial and things really shine when paired with third-party scripts like Jetpack’s Carousel, Magnific Popup, or Swipebox — native support is included for all (select one on the Settings → Media screen).
Galleries within the album shortcode may include a
gallery_link attribute to link the cover image to an arbitrary permalink when a third-party script isn’t being used:
[gallery ids="1,2,3" gallery_link="http://example.com/gallery-one/"]
By default the first image in each gallery shortcode is used as its cover image and will be included when the gallery is viewed. A manually defined cover can be passed as an additional attribute:
[gallery ids="1,2,3" cover="25"]
Covers can be removed from the galleries entirely using the
exclude_covers attribute on the album shortcode:
Any display-related attributes that can be used on native gallery shortcodes can also be used on the album shortcode to modify its appearance (itemtag, icontag, captiontag, columns, size).
We’ll do our best to keep this plugin up to date, fix bugs and implement features when possible, but technical support will only be provided for active AudioTheme customers. If you enjoy this plugin and would like to support its development, you can:
Installing Simple Photo Albums is just like installing most other plugins. Check out the codex if you have any questions.
- Can support be added for additional third-party scripts?
Yes. Find the Jetpack Carousel, Magnific Popup and Swipebox files in the plugin folder as an example. They’re all written as plugins to demonstrate how support can be added for just about any script.
[gallery ids=”107,106,104″ gallery_link=”http://example.com/gallery-one/”]
[gallery ids=”105,102,103″ gallery_link=”http://example.com/gallery-one/”]
Shows one image(album cover) for every gallery, after click image enlarged, no other gallery images displayed.
gallery_link don’t make any changes.
and simple & working realisation.
Contributors & Developers
“Simple Photo Albums” is open source software. The following people have contributed to this plugin.Contributors
Interested in development?
- Updated Magnific Popup to .
- Updated Swipebox to .
- Fixed Jetpack Carousel support. This may be removed in a future version.
- Removed bundled language files in favor of WordPress.org language packs.
- Added French translation.
- Added support for Magnific Popup.
- Load the plugin text domain on ‘plugins_loaded’ in preparation for language packs.
- Try to remove existing lightbox scripts attached to Swipebox albums.
- Load the Jetpack gallery script later so it’s properly initialized.
- Sort the gallery scripts alphabetically in the settings dropdown.
- Fix captions in the Swipebox extension.
- Fix strict PHP notices.
- Initial release.