WordPress.org

Ready to get started?Download WordPress

Forums

Multiple Post Thumbnails
[resolved] Upload secondary image just replace featured image (2 posts)

  1. lonchbox
    Member
    Posted 2 years ago #

    Hi,

    I like the idea of this plugin but can´t make it work.
    First of all I´m testing it on a WP multisite 3.2.1. And trying to use on a custom post type.

    This is in functions.php

    // Setp Secondary thumbnail + Plugin Multiple Post Thumbnails
    $topstorythumb = new MultiPostThumbnails(array(
    'label' => 'Secondary Image',
    'id' => 'topstory',
    'post_type' => 'magazin'
    )
    );
    add_image_size('top-story', 300, 195, true);

    and this on my index.php

    <?php if (class_exists('MultiPostThumbnails')
    						        && MultiPostThumbnails::has_post_thumbnail('magazin', 'topstory')) :
    						        MultiPostThumbnails::the_post_thumbnail('magazin', 'topstory', NULL, 'top-story');
    						        endif; ?>

    With this the secondary image widget appears on the custom post type admin, but when I click to choose/upload an image and click to use it as a feature image just change the first(default feature image).
    I thought was a problem of the WP multisite so I check to this topic and change the code of the plugin but the problem still.

    Any idea?

    Much thanx.

    http://wordpress.org/extend/plugins/multiple-post-thumbnails/

  2. lonchbox
    Member
    Posted 2 years ago #

    Sorry, my mistake. I didn´t see the link saying "set as secondary image".
    The plugin absolutely works and is fantastic :)

    Thanx.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic