WordPress Media Attachment Helpers: wp_get_attachment_image, URL, Metada ...
Attachment helpers: which function returns what WordPress has a whole family of functions for attachments, and they differ in what they return: a complete <img> tag, the URL of the original file, the URL and size of one image size, the metadata of all sizes. Picking the right one saves code and gives responsive, accessible…