• This was working great before, but now for some reason when I have a gallery (using ACF Gallery), when you click an image, it opens in a lightbox but doesn’t let you move to the next image.
    I have auto play on, and it just repeats the same image.

    Is this an issue with the latest update?

    Example: http://lambtonoutdoorclub.org/events/event/port-franks-trails/

    The basic code i’m using is:

    <?php 
    
    $images = get_field('event_gallery');
    
    if( $images ): ?>
    <h3>Event Photos</h3>
        <ul>
            <?php foreach( $images as $image ): ?>
                <li>
                    <a href="<?php echo $image['url']; ?>" rel="lightbox[gallery]" title="<?php echo $image['caption']; ?>">
                         <img src="<?php echo $image['sizes']['thumbnail']; ?>" alt="<?php echo $image['alt']; ?>" />
                    </a>
    
                </li>
            <?php endforeach; ?>
        </ul>
    <?php endif; ?>

    https://wordpress.org/plugins/responsive-lightbox/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter aaronrobb

    (@aaronrobb)

    Correction.
    This issue only happens with the prettyPhoto option, which is the one I need working (client wants that style, and caption).

    So i’m noticing as well that there are no arrows showing for next/back while in the lightbox.

    Plugin Author dFactory

    (@dfactory)

    try changing lightbox[gallery] to lightbox[gallery-1]

    try to replace ” rel=”lightbox[gallery]” with ” data-rel=”lightbox[gallery]” on your templates

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Lightbox only loading the clicked image of gallery’ is closed to new replies.