WordPress gallery is being used to display jpg images. I am using a theme called WPFolio and assembling a site for an artist.
Gallery displays well on page and individual images also display well. Clicking 'next' or 'back' however does not display the expected image. It displays other images, from media library, but not the expected image from the page..
Best regards and many thanks,
Kiet Luong answers:
are you using
previous_image_link() for next and previous links ?
Dominick Curatola comments:
Not sure where these lines of code are inserted. The gallery is present and the 'forward' and 'back' do change the image. But it does not accurately correspond to the images in gallery. (out of order). Thank you for your continued help.
Kiet Luong comments:
If possible please allow me access to your site, so I have a look at it and see how I can help you.
Monit Jadhav answers:
When you add a gallery. And click on any gallery item to open the single image. It uses the attachment template. Hence using next previous will jump to next attachment image as per the media library and not the next item of the gallery. Hence the error.
Monit Jadhav comments:
Simplest answer would be to upload images from the page you want to insert the gallery to and use page id as parameter
This will resolve your problem.