• 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)
  • You’re doing it right. All links-to-images sharing the same rel=”lightbox[something]” will be put into a group.

    Something else is probably wrong here.

    Thread Starter pereiraeduardo

    (@pereiraeduardo)

    I don’t understand this behavior. It only apply a group if i create a gallery on the content field. Just for the record, i’m using toolbox theme and 2 other plugins :

    • JwPlayer
    • Contact Form 7

    Thanks for the quick answer.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP jQuery Lightbox] Galleries with custom fields’ is closed to new replies.