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. Whether to use full size image. Default false.
  • (array) max_dims Optional. Max image dimensions.
  • (bool) permalink Optional. Whether to include permalink to image. Default false.
See:
Returns:
  • (string)
Defined at:

Description

Retrieve HTML content of attachment image with link.

Related Functions

get_attachment_link, the_attachment_link, the_attachment_links, wp_get_attachment_link, get_attachment_icon

Top Google Results

User discussions

wpseek mobile