Title: [Plugin: Multiple Post Thumbnails] A tip to work properly
Last modified: August 20, 2016

---

# [Plugin: Multiple Post Thumbnails] A tip to work properly

 *  Resolved [Pablo Pacheco](https://wordpress.org/support/users/karzin/)
 * (@karzin)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-multiple-post-thumbnails-a-tip-to-work-properly/)
 * This plugin will work properly only if you use it inside an “init” wordpress 
   action. Like this:
 *     ```
       add_action('init', "init");
   
       function init(){
              if (class_exists('MultiPostThumbnails')) {
                   $types = array('custom_post_type_name','post');
                   foreach($types as $type) {
                       new MultiPostThumbnails(array(
                           'label' => 'Thumbnail Title',
                           'id' => 'my_custom_thumb_id',
                           'post_type' => $type
                           )
                       );
                   }
               }
       }
       ```
   
 * If you don´t use it just like this, you´ll not be able to set any thumbnails 
   despite the meta box appear correctly
 * [http://wordpress.org/extend/plugins/multiple-post-thumbnails/](http://wordpress.org/extend/plugins/multiple-post-thumbnails/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Chris Scott](https://wordpress.org/support/users/chrisscott/)
 * (@chrisscott)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-multiple-post-thumbnails-a-tip-to-work-properly/#post-3051785)
 * You don’t need to do this if you are adding the code in functions.php in your
   theme. If you are including it in a function/file that runs in an action, then
   this may be necessary.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Multiple Post Thumbnails] A tip to work properly’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Chris Scott](https://wordpress.org/support/users/chrisscott/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-multiple-post-thumbnails-a-tip-to-work-properly/#post-3051785)
 * Status: resolved