Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




the_attachment_link [ WordPress Function ]

the_attachment_link ( $id = 0, $fullsize = false, $deprecated = false, $permalink = false )
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.
Defined at:



Display an attachment page link using an image or icon.

Source


<?php
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);
}
?>

Examples [ wp-snippets.com ]

Top Google Search Results

More ...

0 User Note(s)

None yet. Be the first!

Add New ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics