voceconnect / multi-post-thumbnails

Adds multiple post thumbnails to a post type. If you've ever wanted more than one Featured Image on a post, this plugin is for you.
143 stars 63 forks source link

[Resolved] Secondary-image Upload / Installation data missing in WP ver 4.4.1 #80

Closed cxanders closed 8 years ago

cxanders commented 8 years ago

I had installed MPT to an installation of WP 4.1.2 successfully. After subsequent upgrade to WP 4.4.1, Secondary-image upload box went missing from Post edit form. When I added the MPT plugin to another WP installation (upgraded already to 4.4.1) 1st time, no config options presented during installation and no upload boxes appear in either Post or Page edit forms.

Am I missing something I am supposed to do? I've made no sense of the Wiki 'Quick Start' instructions and nothing actually lists procedure for manual installation. Any suggestion gladly accepted.

cxanders commented 8 years ago

I found this sequence to work to solve this issue. After download, install and activate plugin, goto theme setup function add these lines (whichever are not there): /* * This feature enables post-thumbnail support for a theme. * @see http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails / add_theme_support( 'post-thumbnails' );

if (class_exists('MultiPostThumbnails')) {
    $types = array('post', 'page');
    foreach($types as $type) {
        new MultiPostThumbnails(array(
                'label' => 'Featured Icon',
                'id' => 'featured-icon',
                'post_type' => $type
            )
        );
    }
}

Post and Page edit pages will have (in this case called) Featured Icon available for upload. If not shown, look at WP Screen Options to be sure it is checked.