the_attachment_link ( $post = 0, $fullsize = false, $deprecated = false, $permalink = false )

  • (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:


Displays an attachment page link using an image or icon.

Related Functions

the_attachment_links, get_the_attachment_link, get_attachment_link, wp_get_attachment_link, _fix_attachment_links

Top Google Results

User discussions

wpseek mobile