Setting post thumbnail sizes in template file and functions.php
I don’t think your code is the issue here. But there are a few caveats that you need to be aware of and account for. First off always keep in mind that when using add_image_size() that WordPress does not regenerate the images size if it was uploaded before you registered the new size. The newly … Read more