Support » Plugin: Multiple Post Thumbnails » Adding a post type

  • Resolved slb535

    (@slb535)


    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/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Adding a post type’ is closed to new replies.