the_attachment_link


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

Parameters:
  • (int|WP_Post) $id Optional. Post ID or post object.
  • (bool) $fullsize Optional, default is false. Whether to use full size.
  • (bool) $deprecated Deprecated. Not used.
  • (bool) $permalink Optional, default is false. Whether to include permalink.
Defined at:

Description

Display 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