Multiple Post Thumbnails
[resolved] URL of custom size thumbnail (3 posts)

  1. azcapone
    Posted 4 years ago #

    Hi. First of all thanks for great plugin.
    I have some question.
    I add thumbnail as written in FAQ, also I added custom size for it. All works fine if I need display original image or get URL of original image or display custom size image. But I need get URL string of custom sized image. Is here any way to get it?


  2. azcapone
    Posted 4 years ago #

    Too long night, sorry.

    $custom = MultiPostThumbnails::get_post_thumbnail_id('post', 'secondary-image', $post->ID); $custom=wp_get_attachment_image_src($custom,'post-secondary-image-thumbnail'); echo $custom[0];
  3. michellerupisan
    Posted 4 years ago #

    Thanks for this snippet.. been looking for this :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Multiple Post Thumbnails
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic