WordPress NextGEN Gallery Shortcodes

Posted by dijitul 02/04/2010 Posted by: 

Whenever we build a website using WordPress and the client requests a gallery – we always use NextGEN.

I can’t fault them for the features it offers, its a fantastic bit of kit – but when it actually comes to the shortcodes to get it to display stuff – NextGEN fail big time.

So I google it every time, sometimes finding what I want – but most of the time having to piece it together from examples people have put on forums.

Today,I found a blog that lists many of the Shortcodes – so I thought I’d repeat them so they are easier for people to find! – Thanks InfoPint!

List of Short Codes for NextGEN Gallery

Short codes are the piece of text which you add along with you text on your blog post or sidebars. Short codes can also be added inside the theme templates.

For a slideshow :[ slideshow id=x w=width h=height ]
For a album : [ album id=x template=extend] or [ album id=x template=compact ]
For a gallery : [  nggallery id=x ]
For a single picture : [ singlepic id=x w=width h=height mode=web20|watermark float=left|right ]
For a image browser : [ imagebrowse r id=x ]
To show image sorted by tags :[ nggtags gallery=mytag,wordpress,…  ]
To show tag albums : [ nggtags album=mytag,wordpress,…  ]

Create Special Effects using Short Codes  in the template files

Short codes can be called from any theme template files, using  do_shortcode template tag   from the template files. Here are some examples

<?php echo do_shortcode(’[ slideshow id=2 ]); ?>

You can use this technique to create special flash headers with rotating images or create a showcase effect like here www.StyleHaute.com

Display Gallery view

http://nextgen-gallery.com/templates/galleryview/

[ nggallery id=1 template=galleryview images=0 ]

Useful Links for NextGEN Gallery

http://nextgen-gallery.com/custom-fields/

http://wordpress.org/support/topic/294912

http://www.visser.com.au/blog/list-of-wordpress-plugins-addons-for-nextgen-gallery/

http://speckyboy.com/2008/10/23/10-powerful-shoppingecommerce-plugin-solutions-for-wordpress/

http://www.webdesignerwall.com/tutorials/css-decorative-gallery/

If you can think of any more shortcodes – or if NextGEN include any more in future releases then please comment. :)

4 responses to “WordPress NextGEN Gallery Shortcodes”

  1. Your readers may be interested in a bridge I have made available that links SlideShowPro to NextGEN Gallery. Take a look:

    http://www.visser.com.au/wordpress/plugins/slidepress-to-nextgen-gallery-bridge/

  2. meerpanhyar says:

    realy great , helpful ….thanks:)

  3. Colm Morgan says:

    I have been using the NGGallery and I would like to display specific images from each gallery on a specific page. Tags seems to be the simplest method up to this point.

    Basically, I have 5 galleries, each to be displayed on individual pages to support the content. However, my galleries contain between 10 & 25 images, but I only want to show 4/5 on each page. The full galleries will then be displayed on a separate, specific Gallery section of the website (client request).

    I have set my tags as “hero” but this does not appear to be limited to any gallery. I am using the shortcode [nggtags id=1 gallery=hero] where the ID would change per gallery.

    Is there a way I can use this method without using alternate tags to determine which images are displayed?

    Any help on this would be much appreciated. Thanks.

  4. Bart says:

    New site…setting up the NextGen galleries.

    Question: is there a way, shortcode, plugin, that will enlarge the thumbnails by hovering or passing over them, say like some Amazon sites?

    Thanks,
    Bart

Leave a Reply

Service with a difference We're always covering news to do with the industry and sharing our thoughts. If you have any questions or feedback on anything, just let us know. Our news items are based on our expertise which we inject in to every website we make. If you want to collaborate with us on your website, just get in touch and let us know your plans for it.

Talk to one of our experts on
01623 650333

Contact us
Get your free website review

Think your website may need a refresh? Just let us know your website address, your phone number or your email address and we'll get one of our experts to review your website for free!

  • This field is for validation purposes and should be left unchanged.
"We have been working with Dijitul since 2010 and have always found them to be professional and extremely helpful, they have recently refreshed our website to make it more smartphone and tablet friendly. We would have no hesitation in recommending Dijitul."
Meena Patel – Director, Gardner Douglas Sports Cars
"It is difficult to know how good a company is just by their website alone, so this review is to let potential clients know that I found Dijitul to be professional, responsive and good value for money. I recommend Dijitul to anyone looking for programming services."
Mike O’Sullivan – Director, Access2Books Ltd
"The service Dijitul has provided for my company has been exceptional and I would not hesitate to recommend their services for all of your ecommerce needs."
Sharon Wellings – Director, Earth Angel Grave Care

SEO Tip: Localise Google Search Rankings

15/01/2016 read more

Latest Marketing Post

WordPress Admin Chrome Bug

14/09/2015 read more

Latest Web Design Post

Working with a 3rd Generation website owner!

29/07/2015 read more

Latest Ecommerce Post

We make awesomefunctionalsuccessfulbeautiful cleanprofessionalsmalllargewordpressecommercemoderneye catching websites

enquire today