Viewing 1 replies (of 1 total)
  • Thread Starter oleav

    (@oleav)

    The problem is almost solved by getting the URL for the featured images.

    <?php $feat_image = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>
      <a href="<?php echo $feat_image ?>" rel="lightbox">
         <?php the_post_thumbnail('full-hd'); ?>
      </a>
    <?php $postid = get_the_ID(); ?>

    This also works when pressing next and previous. But it’s possible to navigate to the next image when there is no next image. Meaning there will be a loading gif and so on.

    Any ideas?

Viewing 1 replies (of 1 total)
  • The topic ‘Open post into Responsive Lightbox not on a new page’ is closed to new replies.