Title: MsPrince's Replies | WordPress.org

---

# MsPrince

  [  ](https://wordpress.org/support/users/msprince/)

 *   [Profile](https://wordpress.org/support/users/msprince/)
 *   [Topics Started](https://wordpress.org/support/users/msprince/topics/)
 *   [Replies Created](https://wordpress.org/support/users/msprince/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/msprince/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/msprince/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/msprince/engagements/)
 *   [Favorites](https://wordpress.org/support/users/msprince/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MarketPress Product Image Gallery] Have first image of marketpress gallery replace featured image](https://wordpress.org/support/topic/have-first-image-of-marketpress-gallery-replace-featured-image/)
 *  Thread Starter [MsPrince](https://wordpress.org/support/users/msprince/)
 * (@msprince)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/have-first-image-of-marketpress-gallery-replace-featured-image/#post-5593201)
 * Hi, Unfortunately this code doesn’t seem to work for my site, the featured image
   remains blank and the mp gallery box disappears from the product page as well,
   perhaps something else would do? I am using the template function so I wonder
   does that have an effect.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MarketPress Product Image Gallery] Intergration with featured image and placement](https://wordpress.org/support/topic/intergration-with-featured-image-and-placement/)
 *  Thread Starter [MsPrince](https://wordpress.org/support/users/msprince/)
 * (@msprince)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/intergration-with-featured-image-and-placement/#post-5313151)
 * Thank you so much for the help, it worked very nicely.
    Also in order for the
   featured image to be the product page image and the first displayed on the page
   I also replaced this bit in the same file
 * $large = wp_get_attachment_image_src($mp_prod_img_id[0], ‘mp-large-view’);
    $
   html .= ‘<img class=”mp_zoom” src=”‘. $large[0] .'”>’;
 * with this bit, It seems to be working although I’m no expert.
 * $featured_img_id = get_post_thumbnail_id( $id );
    $large = wp_get_attachment_image_src(
   $featured_img_id, ‘mp-large-view’); $html .= ‘<img class=”mp_zoom” src=”‘. $large[
   0] .'”>’;
 * Also, something I just noticed is that after you add an image to the gallery 
   you cannot delete the very first one, it can be replaced, but even if you delete
   the path it will keep the image.
    Just thought I’d mention it since someone might
   want to clear out all images except the featured image.
 * Cheers and thanks again!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MarketPress Product Image Gallery] Intergration with featured image and placement](https://wordpress.org/support/topic/intergration-with-featured-image-and-placement/)
 *  Thread Starter [MsPrince](https://wordpress.org/support/users/msprince/)
 * (@msprince)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/intergration-with-featured-image-and-placement/#post-5313146)
 * Very nice with adding the featured image. I just had a question about what was
   put in paste bin and where to add it. So in the file mp_image_gallery.php do 
   you replace the bit on line 231-242 with what is in paste bin? when I do that
   it does put the featured image in but it does not include the other images in
   the gallery? Is this correct, since it seems to get rid of multiple images and
   only displays the one featured image. I feel I must not be adding it correctly.
   If you have any insight as to how to make this work I would be grateful.
    Thanks
   for sharing.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MarketPress Product Image Gallery] Intergration with featured image and placement](https://wordpress.org/support/topic/intergration-with-featured-image-and-placement/)
 *  Thread Starter [MsPrince](https://wordpress.org/support/users/msprince/)
 * (@msprince)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/intergration-with-featured-image-and-placement/#post-5313052)
 * I replaced the featured image in the product template with your plugin, looks
   good now, although the featured image is still separately displayed elsewhere
   but not a problem for me.

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