Whenever we build a website using WordPress.org and the client request 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 p=ut 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.

{ } replace by [ ]
For a slideshow : {slideshow id=x w=width h=height }
For an 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 an 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://dpotter.net/Technical/2008/05/nextgen-gallery-review-displaying-images/

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/

 

article originally from:
http://www.websitewarranty.co.uk/wordpress-nextgen-gallery-shortcodes/