@Kanaan_James Have you managed to sort the issue or are you still needing help with it?
From the second Project file you sent, What screen is the View posts button on and where does it go to as I can't find it. As i think that is where your problem is occuring
Also try using @TIMAI2 code solution but try using the photo variable as the tag instead of the img1, then you probably don't need the file path