• I need just the URL of one of the secondary post thumbnails displaying the different sizes of thumbnails. I got the URL of the full size one to work, but I tried adding the call to the different sizes and it is not working. This is my code so far, which does work for the full size image:

    <?php $custom = MultiPostThumbnails::get_post_thumbnail_id(get_post_type(), 'second-image', $post->ID);$size='mid-size'; $custom=wp_get_attachment_image_src($custom,'second image'); echo $custom[0]; ?>

    Can anyone help?

Viewing 1 replies (of 1 total)
  • Thread Starter wjgoodman

    (@wjgoodman)

    I found my error. it should be:

    <?php $custom = MultiPostThumbnails::get_post_thumbnail_id(get_post_type(), 'your-post-thumbnail-name', $post->ID); $custom=wp_get_attachment_image_src($custom,'your-thumb-size'); echo $custom[0]; ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Multiple Post Thumbnails plugin, getting URL of the different sizes’ is closed to new replies.