Shortcodes

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:

Landscapes

17 Photos

People

18 Photos

Food

17 Photos

Weddings

14 Photos

Adventure

14 Photos

[ album id=5 template=extend ]

will display as:

Landscapes

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

17 Photos

People

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

18 Photos

Food

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

17 Photos

Weddings

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

14 Photos

Adventure

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

14 Photos

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

will display as:

fields

4 Photos

blue

15 Photos


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_01

Picture 1 of 17

Fields of gold. 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=510 h=340 preset='tv-swap' ]

[ 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 ]

people-11

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