Issue with wp_get_attachment_image() and SVG file type
WordPress has trouble with the width and height attributes for SVGs. The width and height attributes can be removed for SVGs using this code adapted from trac ticket #26256 . /** * Removes the width and height attributes of <img> tags for SVG * * Without this filter, the width and height are set to … Read more