Title: Plugin broken by WordPress update
Last modified: August 21, 2016

---

# Plugin broken by WordPress update

 *  Resolved [forzasupps](https://wordpress.org/support/users/forzasupps/)
 * (@forzasupps)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/plugin-broken-by-wordpress-update/)
 * I updated my blog and am now running WordPress 3.7.1. Since doing this, I no 
   longer have the option to “Set secondary image” in my posts. Is there any way
   I can get the plugin to work again or has the update killed it? I would really
   appreciate some help with this. Thanks
 * [http://wordpress.org/plugins/multiple-post-thumbnails/](http://wordpress.org/plugins/multiple-post-thumbnails/)

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

 *  [lorembolo](https://wordpress.org/support/users/lorembolo/)
 * (@lorembolo)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/plugin-broken-by-wordpress-update/#post-4306282)
 * I got the same problem.
    Previous added thumbnails aren’t visible.
 * I only got the Custom Field. (myposttype)_featured-image-2_thumbnail_id in each
   post.
 * Any chance that can be solved?
 * Thanks in advance.
 * EDIT : : it seems that the problem is caused when using multiple thumbnail for
   multiple post types.
    Whan a Second thumbnail is associated with only one post
   type, it seems to work. maybe it can help.
 *  [lorembolo](https://wordpress.org/support/users/lorembolo/)
 * (@lorembolo)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/plugin-broken-by-wordpress-update/#post-4306283)
 * Ok, this is solved.
 * In my functions.php i was using wrong code.
 * 1st code (was working with WP3.7)
 *     ```
       new MultiPostThumbnails(array(
               'label' => 'Vignette Artiste ou Stock',
               'id' => 'featured-image-2',
               'post_type' => 'artiste',
       		'post_type' => 'stock-artiste'
               )
           );
       ```
   
 * New Code (Now Working)
 *     ```
       $types = array('artiste', 'stock-artiste');
       	  foreach($types as $type) {
       		  new MultiPostThumbnails(array(
               'label' => 'Vignette Artiste ou Stock',
               'id' => 'featured-image-2',
               'post_type' => $type
               )
           );
       	 }
       ```
   

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

The topic ‘Plugin broken by WordPress update’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/multiple-post-thumbnails_d94965.svg)
 * [Multiple Post Thumbnails](https://wordpress.org/plugins/multiple-post-thumbnails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/multiple-post-thumbnails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/multiple-post-thumbnails/)
 * [Active Topics](https://wordpress.org/support/plugin/multiple-post-thumbnails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/multiple-post-thumbnails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/multiple-post-thumbnails/reviews/)

## Tags

 * [multiple post](https://wordpress.org/support/topic-tag/multiple-post/)
 * [thumbnails](https://wordpress.org/support/topic-tag/thumbnails/)

 * 2 replies
 * 2 participants
 * Last reply from: [lorembolo](https://wordpress.org/support/users/lorembolo/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/plugin-broken-by-wordpress-update/#post-4306283)
 * Status: resolved