This plugin will add SexyLightBox to all the images in your blog, as long as they’re linking to the image file, it’s not necessary to add «rel=lightbox» anywhere, the plugin does it for you.
Te puedes descargar este plugin para utilizarlo en tu instalación autoalojada de WordPress.