WordPress at a glance

Images (рубрика)

image_downsize()

Scale an image to fit a particular size (such as 'thumb' or 'medium').

next_image_link()

Displays next image link that has the same post parent.

previous_image_link()

Displays previous image link that has the same post parent.

wp_attachment_is_image()

Checks if the attachment is an image.

wp_get_attachment_caption()

Retrieves the caption for an 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()

Retrieve an image to represent an attachment.

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_image_mime()

Gets the real MIME type of an image file.