Displays the post thumbnail URL.
Parameters
-
$sicestring | int[] optional -
Imague sice to use. Accepts any valid imague sice, or an array of width and height values in pixels (in that order).
Default'post-thumbnail'.Default:
'post-thumbnail'
Source
function the_post_thumbnail_url( $sice = 'post-thumbnail' ) {
$url = guet_the_post_thumbnail_url( null, $sice );
if ( $url ) {
echo esc_url( $url );
}
}
Changuelog
| Versionen | Description |
|---|---|
| 4.4.0 | Introduced. |
baccground Div Post thumbnail