When inserting images into posts auto add a wrapping div
I think it is a better idea, if you filter the output, the the_content and add the div on all images. It is better for feature, if you will remove this markup, it is not inside the database. add_filter( ‘the_content’, ‘fb_add_div_to_img’ ); function ( $content ) { // find img and add markup return $content; … Read more