[Plugin: WP jQuery Lightbox] Galleries with custom fields
-
Hi.
I’m working with the plugin using custom fields, and i would like to know if it is possible to create a gallery between the images i add. Here’s the code i’m using:
$key = "Galeria" ; $gallery = get_post_meta ( $post->ID , $key , true ); if ($gallery != "") { // Separate our comma separated list into an array $gallery = explode(",", $gallery); //loop through our new array foreach ($gallery as $picture) { echo '<a href="'.$picture.'" rel="lightbox[Galeria]"><img src="'.$picture.'"></a>'; } }
As you can see, i try “rel=’lightbox[Galeria]'”, but the images don’t link between them. Even if add only two images in HTML:
<a href="https://localhost/fdm/wp-content/uploads/2012/02/mel-07-05-05_2212.jpg" rel="lightbox[109]"><img src="https://localhost/fdm/wp-content/uploads/2012/02/mel-07-05-05_2212.jpg"></a> <a href="https://localhost/fdm/wp-content/uploads/2012/02/mel-07-05-05_2212.jpg" rel="lightbox[109]"><img src="https://localhost/fdm/wp-content/uploads/2012/02/mel-07-05-05_2212.jpg"></a>
Sorry bother
https://www.ads-software.com/extend/plugins/wp-jquery-lightbox/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: WP jQuery Lightbox] Galleries with custom fields’ is closed to new replies.