• Resolved aboother

    (@aboother)


    Hi,

    The box to upload a secondary featured image is not showing under ‘add new page’, but is showing under ‘add new post’. I have added the default functions.php code:

    if( class_exists( ‘kdMultipleFeaturedImages’ ) ) {
    $args = array(
    ‘id’ => ‘featured-image-2’,
    ‘post_type’ => ‘post’, // Set this to post or page
    ‘labels’ => array(
    ‘name’ => ‘Featured image 2’,
    ‘set’ => ‘Set featured image 2’,
    ‘remove’ => ‘Remove featured image 2’,
    ‘use’ => ‘Use as featured image 2’,
    )
    );
    new kdMultipleFeaturedImages( $args );
    }

    Has anyone come across this issue before?

    Cheers.

    http://wordpress.org/plugins/multiple-featured-images/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Yes I am having this issue aswell.

    Thought it might be because you have only put the code in for posts. If you copy and paste that code and do it for pages also, thought that should work, but it didn’t.

    Give it a try anyway:

    if( class_exists( 'kdMultipleFeaturedImages' ) ) {
    
            $args = array(
                    'id' => 'featured-image-2',
                    'post_type' => 'post',      // Set this to post
                    'labels' => array(
                        'name'      => 'Featured image 2',
                        'set'       => 'Set featured image 2',
                        'remove'    => 'Remove featured image 2',
                        'use'       => 'Use as featured image 2',
                    )
            );
    
            new kdMultipleFeaturedImages( $args );
    
            $args = array(
                    'id' => 'featured-image-2',
                    'post_type' => 'page',      // Set this to page
                    'labels' => array(
                        'name'      => 'Featured image 2',
                        'set'       => 'Set featured image 2',
                        'remove'    => 'Remove featured image 2',
                        'use'       => 'Use as featured image 2',
                    )
            );
    
            new kdMultipleFeaturedImages( $args );
    }
    Thread Starter aboother

    (@aboother)

    Hi Matt,

    You are indeed right, not sure how I missed that! Thanks very much for your help : )

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Upload box displaying on posts but not pages’ is closed to new replies.