the_attachment_link
the_attachment_link ( $post = 0, $fullsize = false, $deprecated = false, $permalink = false )
Parameters:- (int|WP_Post) post Optional. Post ID or post object.
- (bool) fullsize Optional. Whether to use full size. Default false.
- (bool) deprecated Deprecated. Not used.
- (bool) permalink Optional. Whether to include permalink. Default false.
Defined at: - Introduced in WordPress: 2.0.0
- Deprecated in WordPress: —
Description
Displays an attachment page link using an image or icon.