wpseek.com
A WordPress-centric search engine for devs and theme authors
the_attachment_link › WordPress Function
Since2.0.0
Deprecatedn/a
› the_attachment_link ( $post = 0, $fullsize = false, $deprecated = false, $permalink = false )
Parameters: (4) |
|
Defined at: |
|
Codex: |
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
Source
function the_attachment_link( $post = 0, $fullsize = false, $deprecated = false, $permalink = false ) { if ( ! empty( $deprecated ) ) { _deprecated_argument( __FUNCTION__, '2.5.0' ); } if ( $fullsize ) { echo wp_get_attachment_link( $post, 'full', $permalink ); } else { echo wp_get_attachment_link( $post, 'thumbnail', $permalink ); } }