I’ve posted previously about the in-built gallery feature of WordPress,and some of the simple things you can do using the shortcode. With this post I wanted to share a few more tips and some apparently less well-known features such as using multiple galleries on one page.

If you only use the media uploader, it would appear that you can only insert one gallery per post – the images you’ve attached to that specific post. But what if you want to include multiple galleries in one post? It doesn’t seem possible using the standard media uploader, but if you use the gallery shortcode you can do it easily. (I describe the basic use of the gallery shortcode here)
1) First you will need to know the ID numbers of the images that you want to use. The easiest way to do this is add a plugin called Reveal IDs This is a very handy plugin that adds a new column to the WP dashboard showing IDs for posts, pages, media etc.
2) After installing and activating the plugin go to Settings > Reveal IDs and make sure “Show Media IDs” is checked.
3) Next go to your media library and you will be able to easily locate the images you want to use and find their respective IDs.Write down the IDs (unless you have a photographic memory 😉 ).
4) Go back into editing your post where you want to place your additional gallery. Then simply type the following shortcode to add those images as a gallery:
[ gallery include=”637, 636, 635″ ]
Other uses of the shortcode:
1) If all of the images you want to use are all attached (i.e. part of that post’s gallery) to another post, you can insert them using the ID of that post:
[ gallery id=”123″ ]
(where 123 is the id of the post)
2) You can also exclude certain images from appearing in your gallery:
[ gallery exclude=”21,32,43″ ]
Other Gallery Enhancements
Linking Each Image To A Specific URL
By default you can link the images in your gallery to either the file itself or the attachment page for that image. If you link to the file it will simply open the image in a browser window by itself.
The attachment page is like a stripped down post page which displays the image within the context of your theme and allows people to leave a comment.
What if you would like to link each image in the gallery each to a diffent location such as an external website, or other pages on your site? Well you need a plugin to do that. WP Gallery Custom Links is a small plugin that allows you to do this very thing. It adds an additional field for you to specifiy where that image should link to from the gallery.
Using A Lightbox to Display Your Gallery
If you would like your gallery to open up in a lightbox or slideshow you can add one of an infinite number of plugins to do this. I happen to like Simple Lightbox or Lightbox Plus. You can also activate the Carousel feature in Jetpack to display images as a nice slider. If you are using Simple Lightbox, you will find the settings on the Settings > Media page where you can activate and configure the plugin.
One thing to be aware of when using a plugin like this is that you will need to upload large sizes of your images and insert them into the gallery as thumbnails, in conjunction with using the link to file option. So when you insert the gallery on your page, you will see thumbnail images, but when you click on them, a larger version will open up in your lightbox or slideshow.
Discover more from WIREDGORILLA
Subscribe to get the latest posts sent to your email.
Similar Posts
Propeller Framework Joins Bootstrap & Google Material Design
The immense popularity of Google’s material design should come as no surprise. It’s part of a…
How To Become An Idea Machine
I’ve talked before on this blog about the need for us to focus on active creation rather than passive consumption. But once you’ve made that mental switch, you can still face the dreaded blogger’s block. Do you ever sit down…
MailerLite Landing Page Tutorial 2021 | How To Create A Landing Page For Free
In this mailerlite landing page tutorial I show you step by step how to create a…
How to optimize your landing pages for users
Landing pages are a very important part of your website. And if you optimize your landing pages, you can increase both your traffic and your conversion rate. Obviously, you should tailor this page to your preferred audience, but there are a number of things that go for all landing pages. In this post, we’ll go […]
The post How to optimize your landing pages for users appeared first on Yoast.
How to Debug Websites on iPad
With billions of mobile users nowadays, building websites that are viewable on mobile devices is indispensable….
Amazon SEO Strategies, Tools & Expert Advice For Better Product Rankings
Ranking products on Amazon relies on three things: Traffic to your Amazon listing The conversion rate…