Support » Plugins and Hacks » Multiple Post Thumbnails » Plugin broken by WordPress update

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    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.