First i want to say I'm sorry. I'm not a coder so my code is sloppy and i may not understand concepts you talk about. Here is my problem.
Making a wordpress website and trying to customize a portfolio template to do some extra things. Iv got everything to work properly besides one little bug. The "showcase portfolio" on my site has projects thumbnails on the left side and then when you click on a projects it loads a larger preview to the left of the thumbnails. You can then click on the image or video and it opens in lightbox and shows you the video or full size image. However, if i click on the thumnails to the right more than 1 time, then the lightbox preview for that page stops working.
Here is the page in question
here is the php i altered to get it to work the way i want. (portfolio-previewr.php is the file i altered, the other one is just the template file that calls it or "includes" it)
Any help would be greatly appreciated. I have no idea if its a PHP problem or a problem with pretty photo.js. Like i said i'm not a coder, so fixing it, or even just pointing me in the right direction would be greatly appreciated. Thank you so much in advance
(to see the bug, click on any thumbnail to the right side of the screen more than once and see how it opens the direct link instead of opening in lightbox)