Hello everyone. I hope this topic hasn’t been asked before - at least, I couldn’t find any mention of it after searching.
I’m wondering if there is any way to use PHP to flag when a certain image is being displayed in a gallery and dynamically generate a pair of “Next” and “Previous” links to the next and previous pictures in the gallery. So, for example, if Picture 3 is being displayed, the “Previous” link will point to Picture 2 and the “Next” link will point to Picture 4.
I hope I’ve explained that clearly!