get_the_attachment_link


get_the_attachment_link ( $id = 0, $fullsize = false, $max_dims = false, $permalink = false )

Parameters:
  • (int) $id Optional. Post ID.
  • (bool) $fullsize Optional, default is false. Whether to use full size image.
  • (array) $max_dims Optional. Max image dimensions.
  • (bool) $permalink Optional, default is false. Whether to include permalink to image.
See:
Returns:
  • (string)
Defined at:

Description

Retrieve HTML content of attachment image with link.

Related Functions

the_attachment_link, get_attachment_link, the_attachment_links, wp_get_attachment_link, get_attachment_icon

Top Google Results

User discussions

wpseek mobile