• Resolved alan-dague-greene

    (@alan-dague-greene)


    I have been using this:

    $thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), full );
    $headerImage = $thumbnail[0];
    echo '<img src="'.get_bloginfo('url').'/wp-content/plugins/portfolio/phpThumb/phpThumb.php?src='.$headerImage.'&w=647&h=220&zc=c" alt="'.$post->post_title.'" />';

    Which has been working fine. Since installing Multiple Post Thumbnails, I’m not sure how to pass the image returned through phpThumb to have it dynamically resized. Could anyone point me in the right direction?

    Thanks,
    Alan

    https://www.ads-software.com/extend/plugins/multiple-post-thumbnails/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chris Scott

    (@chrisscott)

    You should be able to use MultiPostThumbnails::get_post_thumbnail_id in place of get_post_thumbnail_id in your code above. You’ll need to pass in $post_type, $id, $post_id to it just like you would to MultiPostThumbnails::the_post_thumbnail.

    Thread Starter alan-dague-greene

    (@alan-dague-greene)

    Thanks for your help, I’m getting the right image now, but it’s still not coming in at the right size. I’ll report back if I figure anything out.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Multiple Post Thumbnails] Passing image through phpThumb’ is closed to new replies.