WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. azcapone
    Member
    Posted 2 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?

    http://wordpress.org/extend/plugins/multiple-post-thumbnails/

  2. azcapone
    Member
    Posted 2 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
    Member
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic