I'd like to link the featured image of a post on the portfolio page to the post. By default the image is not linked to the post. I understand that I can manually apply the image link with "Link to page" on the portfolio post page. But this will also turn on the lightbox feature, what I'd not like to use.
So basically my question is: What do I need to change in the code that all featured images are automatically linked to the post and the lightbox feature stays disabled.