• Hi,

    Can someone please clarify what the new 2.9 wp post thumbnail can and can’t do.

    I’m having a difficult time with getting it to crop images down

    Does the hard-cropping actually work? when and when doesn’t it work?

    I want to be able to upload an image and Ideally it would be cropped to the thumbnail size I specced via a hard crop.
    I can work around the general un-user friendliness of it all at the moment. I’ve been using the image editing functionality with some success.

    this is how I’m declaring it:

    set_post_thumbnail_size(200, 126, true);

    <?php
    if ( has_post_thumbnail() ) {
    the_post_thumbnail(array(200,126), array( ‘class’ => ‘alignleft’));
    } else {
    echo
    ‘<img src=”‘ . get_bloginfo(‘template_directory’) . ‘/images/thumb-na.jpg” />’;
    }
    ?>

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Post thumbnail not working’ is closed to new replies.