0

These codes can be used to get the next/previous image, but this code does not limit these images to the gallery.

<?php previous_image_link( false, 'Previous' ); ?>
<?php next_image_link( false, 'Next' ); ?>

What code would I use to limit the links to the current gallery?

3
  • Can you explain in detail what you want here and where? The only thing I can gather here is that you want to have previous and next image links and that you want to somehow limit them? Thanks!
    – Shawn
    Nov 5, 2014 at 23:27
  • Something like this Nov 6, 2014 at 9:11
  • Codes that only move users between the next and previous images attached to the current post/page. Nov 10, 2014 at 22:41

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.