Definition:
function the_attachment_link( $id = 0, $fullsize = false, $deprecated = false, $permalink = false ) {}
Display an attachment page link using an image or icon.
Parameters
- int $id: Optional. Post ID.
- 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.
Source code
function the_attachment_link( $id = 0, $fullsize = false, $deprecated = false, $permalink = false ) {
if ( !empty( $deprecated ) )
_deprecated_argument( __FUNCTION__, '2.5' );
if ( $fullsize )
echo wp_get_attachment_link($id, 'full', $permalink);
else
echo wp_get_attachment_link($id, 'thumbnail', $permalink);
}
2947

February 12, 2011 


No comments yet... Be the first to leave a reply!