Title: [Plugin: Multiple Post Thumbnails] Image cropping not working
Last modified: August 19, 2016

---

# [Plugin: Multiple Post Thumbnails] Image cropping not working

 *  [alfie](https://wordpress.org/support/users/drtanz/)
 * (@drtanz)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-multiple-post-thumbnails-image-cropping-not-working/)
 * Hi I’m using this plugin and set a new image size in the functions.php and set
   cropping to TRUE. However on my post page the image is not being cropped but 
   displaying at its full size. This is when using the code for multiple image thumbnails.
 * Here is the code I have in functions.php
 *     ```
       /* Add new thumbnail size */
       add_image_size( 'single-post-thumbnail', 620, 250, true ); // Full image used on single post template (post.php)
   
       /* Add secondary thumbnail (featured image) in posts */
       $thumb = new MultiPostThumbnails(array(
           'label' => 'Secondary Image',
           'id' => 'secondary-image',
           'post_type' => 'post'
           )
       )
       ```
   
 * and in my post.php:
 *     ```
       if (class_exists('MultiPostThumbnails') && MultiPostThumbnails::has_post_thumbnail('post', 'secondary-image')) :
       	MultiPostThumbnails::the_post_thumbnail('post', 'secondary-image', NULL, 'single-post-thumnail');
       endif;
       ```
   
 * How can I fix this problem? Thanks

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

 *  Plugin Author [Chris Scott](https://wordpress.org/support/users/chrisscott/)
 * (@chrisscott)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-multiple-post-thumbnails-image-cropping-not-working/#post-1790716)
 * That all looks OK. Using that same code I get an img tag that looks like the 
   cropping is working:
 * `<img height="250" width="620" title="photo-1" alt="photo-1" class="attachment-
   single-post-thumbnail" src="http://trunk.localhost.localdomain/wp-content/uploads/
   2010/09/photo-1-620x250.jpg">`
 *  Thread Starter [alfie](https://wordpress.org/support/users/drtanz/)
 * (@drtanz)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-multiple-post-thumbnails-image-cropping-not-working/#post-1790821)
 * Stange how it’s not working for me then, you can see an example here:
    [http://bit.ly/idUKoy](http://bit.ly/idUKoy)
 *  Thread Starter [alfie](https://wordpress.org/support/users/drtanz/)
 * (@drtanz)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-multiple-post-thumbnails-image-cropping-not-working/#post-1790902)
 * any idea what else I can change in order to fix this?
 *  Thread Starter [alfie](https://wordpress.org/support/users/drtanz/)
 * (@drtanz)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-multiple-post-thumbnails-image-cropping-not-working/#post-1790983)
 * any help pls?

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

The topic ‘[Plugin: Multiple Post Thumbnails] Image cropping not working’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [alfie](https://wordpress.org/support/users/drtanz/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-multiple-post-thumbnails-image-cropping-not-working/#post-1790983)
 * Status: not resolved