• Resolved commanderk84

    (@commanderk84)


    Currently I’m developing a portfolio website for myself. I’m posting the featured image on the portfolio-item page like:

    (img src="(?=wp_get_attachment_url( get_post_thumbnail_id() ); ?)" class="img-responsive showcaseimagesrc")

    Now I also downloaded the Multiple Thumbnail plugin in order to get a second image underneath the portfolio-item. Regarding the documentation I have to use this code:

    if (class_exists(‘MultiPostThumbnails’)) :

    MultiPostThumbnails::the_post_thumbnail(get_post_type(), 'secondary-image', NULL,  'secondary-featured-thumbnail');
     
    endif

    ;

    Is it also possible to post this second image in the way I do with the first image, so within the image tags?

    I tried some ways myself, but it didn’t work out.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • you need to get url of image so you should try like this

    $MyImageUrl = MultiPostThumbnails::get_post_thumbnail_url(get_post_type(), ‘secondary-image’, NULL, ‘medium’);

    • This reply was modified 8 years, 4 months ago by Anoop Mishra.
    Thread Starter commanderk84

    (@commanderk84)

    If I put that in img-brackets as a source it doesn’t work

    Thread Starter commanderk84

    (@commanderk84)

    I did a work-around now. This topic can be closed

    Moderator bcworkz

    (@bcworkz)

    We’re glad you found a solution. We don’t close topics in these forums unless they violate our guidelines. I’ll go ahead and mark this topic as “resolved”, which is probably what you meant anyway 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Multple page thumbnails’ is closed to new replies.