WordPress.org

Ready to get started?Download WordPress

Forums

Multiple Post Thumbnails
[resolved] Plugin broken by WordPress update (3 posts)

  1. forzasupps
    Member
    Posted 9 months ago #

    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/

  2. lorembolo
    Member
    Posted 9 months ago #

    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.

  3. lorembolo
    Member
    Posted 9 months ago #

    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
            )
        );
    	 }

Reply

You must log in to post.

About this Plugin

About this Topic