Multiple Galleries per Post/Page

Update (June 22, 2016) — This feature is now provided by WordPress by default.

Ever wanted to have multiple galleries on the same post or page? Currently most of the solutions require you to manually edit gallery shortcode and add something like include="img_id_1 img_id2". Luckily, WordPress 2.9 will have this include/exclude feature built in core, but you still don’t have an easy way to select images which to include or to insert multiple galleries.

Therefore, I created a plugin called Multiple Galleries which adds checkboxes next to images in the Insert Gallery window which makes selecting images to be included in galleries fast and easy. If no checkbox is selected, all images are included.

I created this plugin because I am designing a new WordPress theme for designers, artists, architects and all of the creative types where the ability to have multiple galleries per portfolio entry is very important.

Use Contact Form 7 to collect business leads and enquiries? I created Storage for Contact Form 7 plugin which stores them safely in WordPress database.

25 Comments

How about extending this plugin so that it also supports inserting a gallery from the media Library?
I’d be very interested as i.e. I need to insert a gallery into two different places and that is quite difficult, ex. insert a gallery into a post and a page…

It doesn’t work in HTML mode because there is no way of knowing which gallery you have selected (if there are several within the post). In WYSIWYG mode you select the gallery placeholder, which javascript can detect.

Thank You for this plugin!!!!!!!!!
It’s exactly what I was needing for a site using WP as a CMS.
Awesome! Thank you, thank you, thank you.
Of course, I do have a suggestion: having a column label for the check marks that says ‘add to gallery’ or something—in the instance of passing the site off to a client that could be helpful (they’re so often easily confused).
Any chance you know how to get the galleries to show just 1 column, or 1 image at a time for that matter? Thanks

Paul, it looks like it doesn’t add the include parameter when you upload the images the first time. If you insert a new gallery and then edit it to include specific images, it should work. I just tested it on this very blog.

I’ll try to fix this bug. It must be related to the 3.0 changes in javascript that inserts those galleries.

Hi there, I am using your plugin but something does not work for me:
When I go to insert the second gallery on the post/page, the html specifies what photos should be included in that gallery but when I preview the page, it always includes all the photos from the previous gallery as well. In effect it inserts the same gallery twice.

Steve, (1) insert a fresh gallery, (2) close that insert media popup and then (3) click to edit it and specify which photos to include. Secondly, take a look at the post in HTML editor mode and make sure there is the include part inside the gallery shortcode [gallery include="12, 34, ..."].