I wanted to add a photo gallery to this website quickly the other day and to do this I used the NextGEN Gallery plugin. It seemed to be generally well-received by the WordPress community and I wasn’t disappointed. I literally had my gallery up and running in five minutes!
The plugin was created by Alex Rabe who studied all photo and picture plugins for WordPress, he thought that some of them were really good and well designed, but missed a simple and easy administration back end to handle multiple photos, galleries and albums.
Here’s how you do it:
Download the plugin and, after un-zipping and uploading to my wp-content/plugins folder on my server, I activated the plugin in the WordPress CMS. For more explanation about WordPress and loading plugins consult the excellent WordPress documentation.
php.ini
I found that I had to edit my php.ini
in order to get the plugin to work properly. php.ini
is a text file that sits on your server (in this case on the root) that sets global variables such as memory usage. I have found that allocating more memory to PHP on the server useful to get WordPress working at reasonable speeds. That is why I have memory_limit = 64M
in my php.ini
. Here are the other commands I put in my php.ini
to get this plugin to work.
file_uploads = On
upload_max_filesize = 20M
post_max_size = 25M
max_execution_time = 600
max_input_time = 600
safe_mode = 0
Setting up a gallery
On the left hand side of your WordPress navigation right at the bottom you will now see a section called “Gallery”, click on the triangle next to that and from the options that slide down click “Add Gallery / Images” and give a name to your gallery. Now, to upload images, click the last tab on this page entitled “Upload Images”, click “Browse” and locate the image on your computer. Very important: make sure flash based upload is not enabled! I found the plugin would not work properly otherwise. Choose the gallery you have just created and click the “Upload Images” button. I also used the “Upload Zip” method and I was really impressed with how it worked. You can upload potentially hundreds of images in one go and the plug-in will do the rest! Awesome!
Managing the gallery
At the bottom of the left hand WordPress navigation again, click “Manage Gallery” underneath “Gallery”, choose the gallery you have just created and here you can alter the title
and alt
tags for the images. This is not only very important for SEO purposes but also sets the text when the thumbnails are hovered over and captions when the bigger images are displayed. Once done, click “Save Changes”.
Adding gallery to a WordPress post or page
Easy! Simply add [nggallery id=1]
while editing the post or page. The gallery id number can be seen on the Gallery Overview page. The first one you do will be number 1.
Options
I left the plugin options roughly as default but there are a few important things to consider. On the first page of the options I would leave “wp-content/gallery/” as the default path for all galleries. I would uncheck “Activate PicLens/CoolIris support” as not many people have PicLens or CoolIris installed and it creates an unsightly link above your gallery.
You can set the size of the images and the thumbnails here as well as setting a watermark onto the images.
The “Effects” option is very important. It sets the effect that displays the image when the thumbnail is clicked. Shutter and Thickbox will work if selected as these are installed with the plugin however you can use your own. I used “ShadowBox” which is similar to Lightbox and is nicer than the two that are bundled with it.
Its great for creating photo gallery for word press blogs.thanks for shearing this information.I like you article great job.
Great gallery. Don’t know whether I can ask a question. I’m trying to get the same effect ie. a number of thumbnails which are displayed neatly (as on your site). I have called [nggallery id=1] and got the gallery of 3 neat thumbnails which I could select to enlarge. I then added soe pictures and deleted some and now they won’t display as thumbnails. I reset the nextgen gallery plug-in yesterday and now have what you can see on the site. I can display the carosel, which I like, however the image size is far too big and so anyone visiting the site has to scroll to see the individual images below.
Any ideas?
Rob
After posting a note to you. I thought, what the heck, and deleted and re-installed the plugin. It is now working properly.
Sorry if I have wasted your time.
Cheers
Rob
Hello Rob, glad things seem to be working out for you. It is a tricky plugin to get working but usually comes up trumps if you stick at it! Let me know if you have any further questions.
Howdy Rob,
Another excellent article. I tried this a while back, the two integrations it had were of no use, however for stand-alone images this plugin is superb.
Matt
Hey there, Matt, I’ve used it on countless sites I really think it’s one of the best free plugins out there. You can re-crop thumbnails on the back-end, bulk upload with zip archives, customize everything… love it! 🙂
Hi Rob. Thanks for the article. But I have a little problem and I can’t work it out. I’ve created one gallery, it’s working fine. But I can’t make another one, It constantly shows a message : …is not valid image file. I tried to upload images as a zip, nothing is working at all. Maybe you know what I’m doing wrong?
Hi Oksana, I see you’ve got your gravatar! 🙂 I’m not sure of the problem here. You can’t delete a gallery? Can you try deactivating and activating the plugin (you want lose the data)? Or do you want to send me screenshots of the problem to my email address?
Hi Rob. Yep, I have Gravatar now 🙂 Thanks for answering! Much apreciate this. So, I am going to delete this plugin and do all the steps again.. If it doesn’t help, I’ll send you screenshots. It seems like I can’t create any more gallerys, I have only one here. I need three more for this site.. Maybe I have to overwrite php.ini first.
Hi Oksana. Best of luck and feel free to send screenshots. 🙂
I’ve just finished! I’ve done all the steps above including php.ini overwriting. It’s working perfect now. Best regards.
Oksana
Good to hear you got it sorted out, Oksana. 🙂