Wordpress Gallery Plugin

2004 December 25
by David

cat/jess1Geoff Hutchinson has produced a WP plugin for gallery images. Useful.

I’ve made a change to the plugin.

I think there was a small typo in the function wpgallery_link. The original function was:

function wpgallery_link($album, $photo, $link_class=’gallery-link’, $image_class=’gallery-image’, $img_alt=’’, $link_title=’’) {

and I amended this to

function wpgallery_link($album, $photo, $link_class=’gallery-link’, $img_class=’gallery-image’, $img_alt=’’, $link_title=’’) {

and then changed:

<img src=”‘.ALBUM_BASE.’/’.$album.’/’.$photo.’.thumb.jpg”‘.$image_class.$img_alt.’ /></a>

to

<img src=”‘.ALBUM_BASE.’/’.$album.’/’.$photo.’.thumb.jpg”‘.$img_class.$img_alt.’ /></a>

and now everything’s working fine. I’d like to change the code a bit to better manage alt and title tags.

sea/bigsur3Geoff illustrates the use of his plugin with one of his photos of Big Sur on the Calfornian coast south of Monterray. Here’s mine, taken from what look like almost the same spot.

No comments yet

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS