Check what attached image size is used

I think I’d use the get_image_tag filter for this – it provides you with the size as one of the parameters. Something along the lines of: function wrap_wide_image_tags($html, $id, $alt, $title, $align, $size) { if($size == ‘wide-image’) { $html=”<div class=”wrap-wide-image”>”.$html.'</div>’; } return $html; } add_filter(‘get_image_tag’, ‘wrap_wide_image_tags’, 10, 6); Hope this helps!

Images in Blog List

Hey I got the code to get the first image from the content, from this answer, Get first image in a post from Diana but modified the code a bit. So if this is helpful please mark that answer aswell. Insert the code inside your functions.php or create a new plugin. function catch_that_image() { global … Read more