Switch language

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




the_post_thumbnail [ WordPress Function ]

the_post_thumbnail ( $size = 'post-thumbnail', $attr = '' )
Parameters:
  • (int) $size Optional. Image size. Defaults to 'post-thumbnail', which theme sets using set_post_thumbnail_size( $width, $height, $crop_flag );.
  • (string|array) $attr Optional. Query string or array of attributes.
Defined at:



Display Post Thumbnail.

Source


<?php
function the_post_thumbnail$size 'post-thumbnail'$attr '' ) {
    echo 
get_the_post_thumbnailnull$size$attr );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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