wp attachment image (tag)

wp_attachment_is_image()

Determines whether the specified post is WordPress attachment image. A conditional tag.

wp_get_attachment_caption()

Retrieves the caption of specified attachment.

wp_get_attachment_image()

Get an HTML img element representing an image attachment

wp_get_attachment_image_sizes()

Retrieves the value for an image attachment's 'sizes' attribute.

wp_get_attachment_image_src()

Gets an array of data for the specified image: URL, width, height of the attachment image.

wp_get_attachment_image_srcset()

Retrieves the value for an image attachment's 'srcset' attribute.

wp_get_attachment_image_url()

Get the URL of an image attachment.

wp_get_attachment_thumb_url()

Retrieve URL for an attachment thumbnail.

wp_get_attachment_url()

Retrieve the URL for an attachment.