NextGen Gallery

NextGen Gallery Image Object

The following is a print out of the $image object used in galleries: Note: [*caption] * added because ‘caption’ seems to be a reserved word nggImage Object ( [errmsg] => [error] => [imageURL] => http://yoursite.com/wp-content/gallery/logos/wd-logo.jpg [thumbURL] => http://yoursite.com/wp-content/gallery/logos/thumbs/thumbs_wd-logo.jpg [imagePath] => /home/username/public_html/wp-content/gallery/logos/wd-logo.jpg [thumbPath] => /home/username/public_html/wp-content/gallery/logos/thumbs/thumbs_wd-logo.jpg [href] => [thumbPrefix] => thumbs_ [thumbFolder] => /thumbs/ [galleryid] => 7…

Read More

Nextgen Custom Fields in Template

Use Nextgen Custom Fields data in the template files. Image data: echo $image->ngg_custom_fields[“Your Field Name Here”]; Gallery data: echo nggcf_get_gallery_field($gallery->ID, “My Gallery Field Name Here”);

Read More

NextGen Gallery Template Files

Template files can be saved in /wp-content/themes/YOUR-THEME/nggallery and called in the short tag parameters. [nggallery id=1 template=niceone] This will use template file gallery-niceone.php in your theme folder. It will default to gallery.php if template file is not found. Similarly for albums and image browsers: [album id=3 template=coolone] [imagebrowser id=6 template=bigwindow]

Read More

NextGen Gallery Admin Styles

For example, to style table column widths in the gallery admin page edit wp-content/plugins/nextgen-gallery/admin/css/nggadmin.css Download copy to local in case of plugin upgrade

Read More

NextGen Gallery Short Tags

Gallery [nggallery id=x] Slideshow [slideshow id=x w=width h=height] Album [album id=x template=extend/compact] Single Image [singlepic id=x w=width h=height float=left/right] Image Browser [imagebrowser id=x]

Read More