in Snippets, Tips, Tutorials, WordPress

Add Image Sizes to Media Insert Dialog / Thickbox

This is such a cool little snippet. It’ll allow you to add a custom image size that you’ve added using <?php add_image_size() ?> to the media insert pop-up, so your custom image sizes can be inserted into posts as well as used through <?php the_post_thumbnail(); ?>.

Just add the following to your functions.php file:

Adjust as needed!

Write a Comment

Comment