Closed Thunderlab closed 11 years ago
Hi there,
The_post_thumbnail() will output the image right there, I suspect you want :
the_post_thumbnail( array( 'default' => $default, width.... ) ); — Sent from Mailbox for iPhone
On Thu, Feb 21, 2013 at 3:16 PM, Daniel Martines notifications@github.com wrote:
Hi guys! What is wrong in this code:
<?php $default = get_stylesheet_directory_uri() . '/assets/img/noimg.png'; ?> <?php wpthumb( the_post_thumbnail(), array('default'=> $default, 'width' => 870, 'height' => 370, 'crop' => 1 ) ); ?>
It's showing the image in full resolution and the default image is not working...Thanks!
Reply to this email directly or view it on GitHub: https://github.com/humanmade/WPThumb/issues/54
Hi guys!
What is wrong in this code:
<?php $default = get_stylesheet_directory_uri() . '/assets/img/noimg.png'; ?> <?php the_post_thumbnail( array('default'=> $default, 'width' => 870, 'height' => 370, 'crop' => 1 ) ); ?>
The default image is not working...
Thanks!