Switch language

wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren




the_attachment_link [ WordPress Function ]

the_attachment_link ( $id = 0, $fullsize = false, $deprecated = false, $permalink = false )
Parameter:
  • (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.
Definiert in:



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

Beispiele [ wp-snippets.com ]

Top Google Suchergebnisse

Mehr ...

0 Nutzerkommentare

Noch keine. Sei der Erste!

Neu hinzufügen ...



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