WordPress.org

Ready to get started?Download WordPress

Forums

Multiple Post Thumbnails
[resolved] Adding a post type (2 posts)

  1. slb535
    Member
    Posted 1 year ago #

    I've set this up for one post type. Now I realize I need to use it on another. Is there any reason I can't declare it twice in my functions? (When I just set it to post-type => $type, I lose the secondary images that I've already added -- it creates a new blank field.)

    I mean this:

    if (class_exists('MultiPostThumbnails')) {
    new MultiPostThumbnails(
    array(
    'label' => 'Secondary Image',
    'id' => 'secondary-image',
    'post_type' => 'profile'
    )

    );
    }

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

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

  2. Chris Scott
    Member
    Plugin Author

    Posted 1 year ago #

    Your code above *should* work. Does it not? If so, what errors are you getting?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.