WordPress 2.5.1 and Lightbox
Viloria.net on Jun 19 2008 | Filed under: General
Here’s how you can make Lightbox work in WordPress 2.5.1
You’ll need the Slimbox WordPress Plugin.
You’ll also need to edit the /wp-includes/post-template.php file:
Somewhere near line 390, replace
return “<a href=’$url’ title=’$post_title’>$link_text</a>”;
with this:
//mafro lightbox mod
list($url, $w, $h) = wp_get_attachment_image_src($id, “full”, $icon);
return “<a href=’$url’ title=’$post_title’ rel=’lightbox[roadtrip]’>$link_text</a>”;
I found that WordPress PHP adjustment in a comment made by Mauro in WP […]