Shortcodes

*This page displays short codes for older versions of NextGEN Gallery (1.9.13 and older). For short codes for the latest versions (2.0 and up) please see our NextGEN Gallery Shortcodes page.

The legacy shortcode system will soon be deprecated as of v2.0, but will still work. We’re introducing a new interface in v2.0 for adding galleries and albums to pages/posts.

List of Short Codes

The shortcodes below will need to be added within the brackets (without the space between bracket).

Thumbnail Gallery
[ nggallery id=36 ]

will display as:

Slideshow
[ slideshow id=36 ]

will display as:

Albums

[ album id=5 template=compact ]

will display as:

[ album id=5 template=extend ]

will display as:

Landscapes (Older Gallery)

This is a gallery of landscape images. This is the description for the gallery. It can be edited on the Manage Gallery page.

People (Older Gallery)

This is a gallery of people images. This is the description for the gallery. You can edit the description on the Manage Gallery page.

Food (Older Gallery)

This is a gallery of food images. This is the description for the gallery. You can edit the description on the Manage Gallery page.

Weddings (Older Gallery)

This is a gallery of wedding images. This is the description for the gallery.

Adventure (Older Gallery)

This is a gallery of adventure images. This is the description for the gallery.

Use Image Tags to Create Galleries/Albums
[ nggtags album=fields,blue ]

will display as:


Display Captions in Thumbnail Galleries
[ nggallery id=36 template=caption images=3 ]

will display as:


Basic Filmstrip Galleries
[ nggallery id=36 template=carousel images=6 ]

will display as:


Template Engine for Gallery Types
[ nggallery id=1 template=sample1 ]
[ nggallery id=1 template=sample2 ]
[ nggallery id=1 template=sample3 ]

*sample= the template you have created or downloaded that you are calling to as the style for the gallery. See more information here: Working with Templates…

Display Exif Data
[ imagebrowser id=36 template=exif ]

landscape_13

landscape_13
Picture 1 of 17

Before sunrise in the desert. This is an image caption.

Meta data

Camera / Type
Aperture
Focal Length
Shutter speed
Date / Time

Sort Images in a Gallery Based on Their Tags
[ nggtags gallery=fields,blue ]

Integration with Third Party Plugins
[ monoslideshow id=36 w=450 h=350 ]
[monoslideshow id=36 w=450 h=350]

[ monoslideshow id=36 w=510 h=340 preset=’tv-swap’ ]
[monoslideshow id=36 w=510 h=340 preset=’tv-swap’]

[ monoslideshow id=36 w=450 h=350 preset=’sparkles’ ]
[monoslideshow id=36 w=450 h=350 preset=’sparkles’]

Add Tag Clouds
[ tagcloud ]

 

Single Pic Options
[ singlepic id=x w=width h=height mode=web20 ]

Additional Shortcode Tips 

  • add ‘images=x’  to shortcode, replacing x with any number to limit the amount of images per page display
  • add ‘w=800 h=533′ to shortcode,  to set the width and height of any slideshow, filmstrip or singlepic