Yeah, I removed that from the loop. Even with the $parentID in the loop as follows:
'p'=> $parentID
It gives me two previous buttons, the post attached to the image and the previous post, and the next button the post attached to the image.
So, for example, I have two posts, test and test2 and when viewing the image attached to test, it displays test2 and test as the previous buttons and test2 as the next button.
What I’m trying to do is to just display the test2 next link.