Support » Plugins and Hacks » [Resolved] [Plugin: Multiple Post Thumbnails] Plug-in doesn't seem to work in WordPress 3.2.1

[Resolved] [Plugin: Multiple Post Thumbnails] Plug-in doesn't seem to work in WordPress 3.2.1

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi man, i have the same problem… did you ever find a solution?

    Plugin Author Chris Scott


    Give this version a try and let me know if it works: multi-post-thumbnails.php

    Thanx Chris for answer… but I try and it doesn’t run… but I think I probably wrong something… probably point 3 of ur intallation guide:

    Register a new thumbnail for the post type you want it active for. If post_type is not set it defaults to post.

    if (class_exists(‘MultiPostThumbnails’)) { new MultiPostThumbnails(array( ‘label’ => ‘Secondary Image’, ‘id’ => ‘secondary-image’, ‘post_type’ => ‘post’ ) ); }

    where do I have to put it?

    Plugin Author Chris Scott


    @xeth23: put that in your functions.php of your theme.




    I think (&hope) I found the problem.
    I tried to trace how your plugin stores the thumbs images reference values (very smart by the way). And found that on some cases (can’t tell when), the values are not stored, and an invalid (broken) reference is stored (to an none exist post id). and while you try re-upload the image the values stays the same and not changed.

    So what I’ve done to fix this, is moving just one line of code, as follow..
    on public function set_thumbnail, add the following line, just after where you get the thumbnail_id:
    delete_post_meta($post_ID, "{$this->post_type}_{$this->id}_thumbnail_id");
    You could also remove that line where it is now, few lines below, but it isn’t a must.

    Hope that helps.

    Hello Chris, nice plugin very useful, thanks.

    I had the some problem, i think, i install and work after a few changes in admin stop to work in some cases.

    My problem it’s caused whem i remove the images from media library to generate new thumbnails.

    The wp remove the image reference in the box but the ID reference keeps in the custom_field and because of that it doesn’t let save a new image even if the box of second image is empty.

    @gaspas, try to use my fix above, I think it should work for you.

    @chris Scott
    Thanks, the updated version works for me 🙂

    I’m also having the same problem with WP 3.2.1 and the latest plugin code.

    I activated it, but don’t see the add secondary image in my posts?

    Also, where do I add step #4 Display the thumbnail in your theme: ? Is this a requirement? If I add to functions.php, it breaks it. Is there a certain place I am supposed to add #4?

    Plugin Author Chris Scott


    @dreamgrowers see http://wordpress.org/extend/plugins/multiple-post-thumbnails/installation/ for the code you’ll need to add to functions.php to register a secondary image. For #4 you need to put it in the template where you want the image to be displayed if set, typically single.php.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Resolved] [Plugin: Multiple Post Thumbnails] Plug-in doesn't seem to work in WordPress 3.2.1’ is closed to new replies.