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:Defined at: - Introduced in WordPress: 2.0.0
- Deprecated in WordPress: 2.5.0
Description
Retrieve HTML content of attachment image with link.