Core Function
View Source on Trac ↗ the_attachment_link()
the_attachment_link(
mixed $post = 0,
mixed $fullsize = false,
mixed $deprecated = false,
mixed $permalink = false
) Displays an attachment page link using an image or icon.
Parameters 1 required
| Name / Type | Description |
|---|---|
| (int | | WP_Post) $post Optional. Post ID or post object. Required |
| $fullsize bool | Optional. Whether to use full size. Default false. |
| $deprecated bool | Deprecated. Not used. |
| $permalink bool | Optional. Whether to include permalink. Default false. |
Return Value
(void)
No return value description available.
Function Information
Since Version
2.0.0
Source File
wp-includes/post-template.php
Advertisement