Awesome, thanks, works perfectly well!!
Just one more question if you’ve got the time: I would like to add another class to the post thumbnail using jQuery. In order to do that I need to give the image an id but I don’t know how?
I want the id to be “image-<?php the_ID(); ?>” and the class added should be “img-thumb”.
Is there a function that can do that? I tried wrapping the image into a div and then adding a new class to the div but that didn’t work…