humanmade / WPThumb

:warning: UNMAINTAINED :warning: On demand image resizing for WordPress
https://humanmade.co.uk/wpthumb/
170 stars 32 forks source link

Problems with default image #54

Closed Thunderlab closed 11 years ago

Thunderlab commented 11 years ago

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!

joehoyle commented 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