NextGEN Gallery Review - Displaying Images - Gallery
Table of contents for NextGEN Gallery Review
- NextGEN Gallery Review - Introduction
- NextGEN Gallery Review - Installation
- NextGEN Gallery Review - Configuration
- NextGEN Gallery Review - Image Management
- NextGEN Gallery Review - Displaying Images
- NextGEN Gallery Review - Displaying Images - Singlepic
- NextGEN Gallery Review - Displaying Images - Gallery
- NextGEN Gallery Review - Displaying Images - ImageBrowser
- NextGEN Gallery Review - Displaying Images - Album
To display all images in a single gallery, specify the gallery shortcode on a post or page.
[gallery=id]
id= the ID of the gallery (e.g. 1).
The gallery shortcode displays the thumbnails for the images in a single gallery on the post or page. The following options can be configured on the Gallery options page:
- Number of images per page. The default is 20. If 0 is specified all the images in the gallery will be displayed.
- Whether a slideshow link is included.
- Whether to show a description or the alternate title text with each image.
- Whether to display the gallery using the ImageBrowser viewer instead.
- Note that the ImageBrowser viewer can be specified explicitly so it is unnecessary to set that option.
- How to sort images.
These options can also be specified as custom fields on the post or page.
ngg_gal_ShowOrdergallery- Show the gallery firstslide- Show the slideshow first
ngg_gal_Images- 0-xxx - (integer) Number of images per page
ngg_gal_Sortpid- Sort thumbnails by image IDfilename- Sort thumbnails by file namealttext- Sort thumbnails by Alt / Title text
ngg_gal_SortDirectionASC- Sort in ascending orderDESC- Sort in descending order
ngg_gal_ShowDescriptionnone- Don’t show a descriptiondesc- Show the description textalttext- Show the Alt / Title text
ngg_gal_ShowSlide0- Don’t show a slideshow link1- Show a slideshow link
ngg_gal_ImageBrowser0- Show images directly1- Show images using the ImageBrowser viewer
Examples
[gallery=#]
Wishlist / Caveats
- It would be nice if the above options (e.g. number of images, whether to show a description, etc.) could be specified as parameters.
- It would be nice if thumbnail size could be specified.
Resources
All images © 2008 Bethany Potter. All rights reserved.














Hi! Can you please show me an example on how to use the “ngg_gal_ShowSlide” option? Thanks…
/Per
Hi David!
well… i’m working in the WP 2.3.3, i’ve installed this plugin, but when I wrote the [ gallery=# ], or the [ album=# ] nothing happens. It’s interesting because i’ve create a gallery and an album; i’ve downlod the rotator and put the swf in the plugin’s archive too.
Maybe you could help me? Really thanks!
sorry for my bad english
Really thanks David, this have resolve the problem!
Than you one more time!
I have noticed that the slideshow doesnt ever quite load nor shows, I see the same happening on your site as well.
Yes, it would be nice to have the description of the gallery displayed at the top of the page.
I would like to know how to get a list of images outside of a page or post.
THANK YOU!!!!!!!! for the [ gallery=# ] post and replies! Geez, I was really frustrated, but now all is well, thanks again!
@Mike - Unfortunately there isn’t currently a way to do this easily, although it is still possible. It’s one of the suggestions I’ve made in the article. What you have to do is get the link to the image you want to display from the source, whether that is the thumbnail, the image displayed by a singlepic shortcode, or the full-size image. Then you have to use that URL in your post for an img tag. At that point you can insert an img tag pointing to that URL in the src attribut (i.e. <img src=”imgurl”>) and enclose that in a link tag (i.e. <a href=”linkurl”>).
Hi,
Thanks for the tutorial, it’s really useful.
However, I have a bug, or an problem. My Gallery and Albums only like to display at the bottom of pages. I can’t quite work out why it keeps moving itself down.
I was wondering if you had any idea what this problem could be?
http://www.thesamantha.co.nr
Samantha.
check my temp gallery at
http://www.routinefly.com/test-gallery
You seem to be the man with the knowledge on nextgen gallery. i’m having two issues. first, my thumbnails aren’t displaying, even though they are being created. if you right click them and say show image you get them however in the gallery they do not display… could be a theme issue but i don’t know how that could effect it. secondly, in the extended view i’m getting thumbnails on the side and i don’t want them there. i want to be able to have images pop up, scroll through normally and disable right clicking but it seems to be very buggy. any advice would be great.
ps.
all of the flash viewers i tried were confined to a small box and wouldn’t display in the full window. i just wound up giving up on those and hoping that the normal viewer will work for me.
Hey,
I’m having a problem with thumbnails not showing up when I try and insert a gallery into a post. The thumbnails are just thin stripes as oppose to actual, you know, thumbnail images. Gallery works fine if I try and put it in a page, but won’t work for posts.
I’m at a complete loss on this one. Any help? I would appreciate it.
Hi David,
I was wondering whether you could please help me out here…
I want to insert a Gallery into a post, but I do not want the multiple images to be showed in my post. What I’m looking for is being able to add a single thumbnail into my post, but then when somebody clicks on the thumbnail it shows up the gallery. Is that possible with nextgen-gallery? If so, could you please give me some hints on how to do it?
Thanks
Héctor
Hi David!
thanks for the wonderful plugin. this is by far the best photo gallery plugin i have ever tried.
unfortunately, i can’t seem to make my gallery viewable. i have the same situation as Nicholas (the first reply here)
and i don’t have a space on my screen. its just “[gallery=1]” without quotes. but when i try to visit the page, its blank. the gallery isnt there.
do you have any other suggestions? thanks for your time.
Hi David,
for additional information, i tried using “[album=1]” it worked. however what i want to display are all the images inside that album. hence the “album”.
again, thank you for time.
Lucky Dog » title for sticky post (change) · August 5th, 2008 at 12:42 am #
[...] NextGEN Gallery Review - Displaying Images - Gallery [...]
@rob
Hey Rob,
you probably have something in your current stylesheet like this: max-width: 100%; calling your max picture width. please loose this line of code. it helped me out!
Cheers!
Eric
I’m stuck here and need help please.
I created a new page and in the body I only put
[gallery=11]
It is not showing the actual gallery, only one global post made to all categories. Why? I have only one gallery with page id of 11, so it should work.
@Samantha - Sorry, no idea why it would appear only at the bottom. It should appear where ever you place the shortcode, which is how it appears on my page.
@Rob - Sorry, no idea. Eric’s suggestion is probably a good one to investigate.
@J - Man, I’m not being very helpful today. The problem you’re having sounds very strange. You might try asking up on Alex Rabe’s forum.
@Héctor - One way to do this is to create a page that displays your gallery. Then use normal <a href=…> wrapping <img src=…> syntax to display the image and link to the gallery page.
What you’re really asking for here is to have more control over what happens when you click on an image. I’d love to be able to specify the reference URL. At present this isn’t available. Something to ask Alex about.
@Daryl - I’m not sure I completely understand the issue you’re having. If you specify [gallery=1] it will either display up to the number of images you specified on the settings page or display a slideshow if you have that configured. It will do this all on the same page. If what you want is to display a single image representing the gallery that allows you to click to display the rest of the images, an album is probably what you want. Let me know if I’ve misunderstood your issue.
@Chad - Hmm, very odd. How many images are in gallery 11? Not sure what you mean by “one global post made to all categories.”
hello,
thanks for all the information on the plugin. But I have a question:
I am trying to call a gallery from inside a page template with a variable for the gallery id. Like this:
echo $value;
$showgallery = ‘[gallery=$value]‘;
$showgallery = apply_filters(’the_content’, $showgallery );
echo $showgallery;
But it doesn’t work. It only shows the gallery when $value is replaced by a genuine number.
Any thoughts on this ? I would appreciate it. Thanks.
Hello,
thanks for the reply.
I tried the double quote thing in various combinations, but it still doesn’t work.
This should be possible though ?
Never mind, i found it ! You need to use different code:
if (function_exists(”nggShowGallery”))
{ echo nggShowGallery($value); }
Hiya. Thanks so much for the effort and time you put into all this. I’ve used it as a reference several times.
I’ve got NGG working with Lightbox on my site and there’s just one thing I can’t get figured out. On my photos page (http://engberts-kaya.com/photo-galleries) the thumbnails for the different galleries are all different sizes! In the galleries I’ve got them all set for square, but that doesn’t seem to apply to the album. Any idea why? (If they’re all uniform by the time you see this, that means I’ve figured it out somehow). Thanks for your time either way.
David,
thanks for your answer.
Héctor
Hi David,
thanks again. I was able to do what you suggested. I tested it out on my testing blog and it works fine. I’ll implement it in my main blog. Thanks for the time in helping us here.
I found an example of exactly what I want to do, please visit this link
http://www.jejoueaugolf.com/?p=18
Once in that link click on the picture tree… you will see it takes you directly into a gallery (not other page). I was trying to do that but I couldn’t
I apologize to the owner of the blog above (the one I’m using for referencing my question, I hope I’m not offending him/her). I just saw a wonderful work that I want to learn how to do so.
Héctor