Building WordPress image galleries is a rather painless process and allows you to display a set of photos/images to your users inside posts/pages related to an event or topic.
In case you are interested in seeing what the result looks like, you may want to look at the Kgaswane Nature Reserve post I wrote on the Rustenburg website I built for my town/city. It has a set of photos in a WordPress post in a gallery format. Beautiful, isn’t it? Yes, the nature reserve is beautiful as well!
What You Need
Before we get started, there are two WordPress plugins which you are going to need. Neither of them are specifically required but I recommend them since they integrate very well and will provide your users with a more pleasant browsing experience and also gives you the flexibility that you need.
The first plugin was developed by myself personally. I released it on the Tribulant Software website and it requires a license. It integrates the Lightbox JavaScript library into WordPress and gives you the ability to display images in an overlay on the same page.
The second plugin is a free, GPL based plugin which was developed by Peggy & Justin Hawkwood. The Gallery Plus plugin simply adds configuration values for the WordPress “gallery” shortcode in the “Settings” section of your WordPress dashboard.
Upload both of these plugins to your “wp-content/plugins/” folder after downloading and extracting them. With the plugins uploaded, go to your “Plugins” section in your WordPress dashboard and activate them. By activating these plugins, they are ready for use and you can configure them according to your needs in the “Settings” section of WordPress.
In order for the WordPress Lightbox plugin overlay effects to be used when you insert the WordPress gallery shortcode, you need to change a configuration value in the Gallery Plus plugin. Go to “Settings” > “Gallery Plus” in your WordPress dashboard and change the “rel value in <a> tag” setting to “lightbox”.
Building a WordPress Image Gallery
Before you can insert an image gallery into a WordPress post, page or theme, you’ll need to upload/attach some photos/images to a WordPress post or page. You can do this by writing a new post or editing an existent post and make use of the media uploader integrated into the WYSYWIG editor of WordPress to upload your images.
IMPORTANT : Replace the curly brackets in the codes below with block brackets. In other words, “{” becomes “[" and "}" becomes "]“. Otherwise it will not work.
With a few images uploaded to a post/page, you can insert the following code directly into the content of the post/page where you want the WordPress image gallery to appear.
This WordPress gallery shortcode will be replaced with thumbnails of all the images you uploaded to the specified post/page using the media uploader mentioned above.
If you prefer to insert an image gallery into a WordPress theme, you can do so by inserting code like below into your WordPress theme files.
There are several options you can specify when executing the WordPress gallery shortcode. For example, when hardcoding the image gallery directly into your WordPress theme, you’ll need to specify an “id” attribute to tell WordPress which post/page’s images you would like to show.

















December 31st, 2008 at 1:01 am
I have used it. Many thanks.
Can you give me any wordpress image gallery theme.
I am waiting for your kind reply.
Regards
Muddasar Khan
January 25th, 2009 at 11:36 am
Good information on your site for this story and your post looks very interesting. Keep up the good work.
February 16th, 2009 at 5:30 pm
Good information useful for us and also valuable
April 20th, 2009 at 10:46 am
Nice pics there. Have fun!
June 6th, 2009 at 6:45 am
Good one, galleries can be useful at times especially for projects etc
Thanks for posting them
June 11th, 2009 at 12:31 pm
Antonie
Thanks for this.
The Kgaswane Nature Reserve post pictures are really beautiful while the Rustenburg site has a lovely clean, professional feel to it. I’ve toyed with the idea of doing one for my home town here in Carshalton, England, but still haven’t got round to it. Your site has inspired me to take some action.
Now all I’ve got to do is find the time!
Ben
June 13th, 2009 at 1:35 am
This post is full of great information. Thanks for the post.
June 15th, 2009 at 11:54 am
Hi Ben,
Thank you for the kind words. I wish you all the best of luck with starting a business directory for your home town.
All the best,
Antonie
June 20th, 2009 at 6:53 pm
Hi Antonie
You’re welcome and thanks for your good wishes. If I get the project off the ground, I’ll let you have a link.
Take care.
Ben
June 21st, 2009 at 2:58 am
Great article. I’m hoping to start a new blog. And I wanted to add an image gallery to it. This information is very useful. Thanks for sharing.
June 23rd, 2009 at 1:18 am
Thanks, I enjoyed your post immensely. It’s nice to see someone writing something worth reading
June 24th, 2009 at 6:44 am
I was looking for a way to setup a pic gallery, This helps a lot. Thanks for sharing the information.
July 2nd, 2009 at 5:06 am
Great Info!
Thank you, for your posting, Gallery Plus was the script Im searching for!
Greetings Martin
July 5th, 2009 at 6:23 am
I run several WP-blogs. Most of them are in german. The german blogging communitz is a kind of strange so I try to avoid them.
I am glad to find sites like this and have in general the feeling that the WP-Community in english is much more helpful than the german one and of course offers a bigger veriety in themes and plugins.
Therefore I am happy to spend some hours to adjust the themes and plugins (most of them are ok) to german.
to all out there who are sharing their knowlegde and Ideas.. Thank you a lot
July 5th, 2009 at 10:32 pm
That’s certainly a great post. Galleries are really good components for your blog. Thanks for the information. Certainly would be very useful. Cheers
July 15th, 2009 at 9:44 am
My friend who commented earlier recommended this post to me. I was looking for a way to add an image gallery to my site. This really helped me out. Thanks for sharing.
July 17th, 2009 at 5:27 pm
Galleries have many uses. Thanks for sharing some of these pointers.
July 22nd, 2009 at 11:14 am
Great! Woo!
I agree with you!
Thank you for sharing this with us.
July 23rd, 2009 at 6:38 am
Good information on your site for this story and your post looks very interesting. Keep up the good work.
July 29th, 2009 at 6:24 am
I should say that I was really impressed with your “WordPress Gallery Plus Plugin”… It worked very well… The suggestion on how to use these plugins on wordpress was worth implementing.. Thanks for the lovely post…I have bookmarked your blog..
July 30th, 2009 at 11:47 am
Great job that you do with “WordPress Lightbox Plugin” i see it in action by my frien designs. He told me about this page. Just want to say you: You plugin is awesome, even when im not a web desing, was easy to understand and make a lot of image galleryes.
Thanks.
August 3rd, 2009 at 11:03 pm
wow, nice, thank your so much for your sharing ~
August 11th, 2009 at 3:41 am
I was looking for a way to implement a photo gallery in my site on work wear. This explained a lot to me. I’m glad that I came across your post. It was very informative. Learnt a lot from it. Thanks for sharing.
August 12th, 2009 at 6:05 am
Nice article and a very interesting post.
Galleries are a useful resource – especially during certain projects. Have fun !
August 21st, 2009 at 7:48 am
It is definitely a wonderful idea
the picture can be stored in a page maybe with category too and if you just want to publish an image you are free to comment it directly from that page
August 21st, 2009 at 12:35 pm
Thanks for the interesting post on WP image galleries. I look forward to reading more posts from you in the future.
August 27th, 2009 at 3:06 am
It’s very useful plug in for Wordpress, and I often use it in my blogs
August 29th, 2009 at 4:08 pm
If you put the pics on Flickr then one solution might be Pictobrowser. It makes a nice gallery that you can embed in a page or blog posting. It will grab pics, that you specify, from your Flickr account. I have used it in Wordpress though the linked page seems to offer a link to another site that suggests some small config (a plugin) might be necessary to get it work to work with Wordpress (config that I don’t remember having to do to get it to work for me).
September 14th, 2009 at 2:55 am
Thanks for the tips, i want to build photo gallery for blog wordpress posting. thanks.
September 15th, 2009 at 10:17 pm
Can this be implements with HTML:TAGS? this plugin is really cool but i cant seem to get it working. can anyone help?
September 19th, 2009 at 3:39 pm
Looks wonderful, and with it setting up a Gallery Category so that all pictures which are in the post, are also accessible there? Right? I got the upload scenario which is great but the Image Gallery is also very good.
September 20th, 2009 at 10:20 am
Thanks for the interesting post on WP image galleries. I look forward to reading more posts from you in the future.
September 21st, 2009 at 8:10 am
This is a really good feature and I love this effect, Thanks for the useful tut.