Title: Multple page thumbnails
Last modified: January 15, 2018

---

# Multple page thumbnails

 *  Resolved [commanderk84](https://wordpress.org/support/users/commanderk84/)
 * (@commanderk84)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/multple-page-thumbnails/)
 * 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.
    -  This topic was modified 8 years, 4 months ago by [commanderk84](https://wordpress.org/support/users/commanderk84/).
    -  This topic was modified 8 years, 4 months ago by [commanderk84](https://wordpress.org/support/users/commanderk84/).
    -  This topic was modified 8 years, 4 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
      Reason: put code in backticks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmultple-page-thumbnails%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Anoop Mishra](https://wordpress.org/support/users/anoopmishra/)
 * (@anoopmishra)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/multple-page-thumbnails/#post-9866128)
 * 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](https://wordpress.org/support/users/anoopmishra/).
 *  Thread Starter [commanderk84](https://wordpress.org/support/users/commanderk84/)
 * (@commanderk84)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/multple-page-thumbnails/#post-9866153)
 * If I put that in img-brackets as a source it doesn’t work
 *  Thread Starter [commanderk84](https://wordpress.org/support/users/commanderk84/)
 * (@commanderk84)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/multple-page-thumbnails/#post-9874585)
 * I did a work-around now. This topic can be closed
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/multple-page-thumbnails/#post-9874873)
 * 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.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 4 replies
 * 3 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/multple-page-thumbnails/#post-9874873)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
