[wp-hackers] Gallery in 2.5

David Weitz dabbaking at gmail.com
Tue Apr 1 10:08:06 GMT 2008

Lightbox is added via the anchor attribute, so that would probably going 
within the image.php template like <a href="#" rel="lightbox"><img 
src="#" alt="#" /></a>


Richard Brown wrote:
> Hi All
> I am wondering whether it is possible to automatically assign classes
> to images within the new gallery function in 2.5 please? The idea
> being to assign a class say imglge to the first uploaded image and
> then say imgsm to the next four and then style them accordingly. Or
> even automatically add a class like lightbox to include that function.
> If it is not possible would it be possible to add a field where the
> class could be added on upload please?

More information about the wp-hackers mailing list