• Hi,

    I ran into the problem that the shortcode does not show the second featured image.
    After installing the plugin i added the following code (that you provided) to my functions php:
    add_filter( ‘kdmfi_featured_images’, function( $featured_images ) {
    // Add featured-image-2 to pages and posts
    $args_1 = array(
    ‘id’ => ‘featured-image-2’,
    ‘desc’ => ‘Your description here.’,
    ‘label_name’ => ‘Featured Image 2’,
    ‘label_set’ => ‘Set featured image 2’,
    ‘label_remove’ => ‘Remove featured image 2’,
    ‘label_use’ => ‘Set featured image 2’,
    ‘post_type’ => array( ‘page’, ‘post’, ‘symptom_ausgabe’,’symptom_artikel’ ),
    );

    // Add the featured images to the array, so that you are not overwriting images that maybe are created in other filter calls
    $featured_images[] = $args_1;
    $featured_images[] = $args_2;

    // Important! Return all featured images
    return $featured_images;
    });

    The feature shows up fine in admin panel and i can assign a second featured image.
    I inserted the shortcode: [kdmfi_featured_image id=“featured-image-2″ size=“full“]

    but it does not show the image in preview.

    Did i miss something? I would appreciate your help!
    I provided the link to the post that has 2 featured images – the green box is where the second featured image is supposed to show up through the shortcode.

    Thanks a lot,
    regards,
    Cami

    The page I need help with: [log in to see the link]

  • The topic ‘Shortcode not working’ is closed to new replies.