How to Add Multiple Featured Images
-
Hello everyone,
I try to make multiple featured images for my articles on WP. I looked everywhere, but couldn’t find any solutions.
I use Divi and I maked a modele for my articles by the divi theme builder. I’ve installed this module https://www.ads-software.com/plugins/multiple-featured-images/ but it doesn’t work…
I followed many tutorials like this one : https://astucesdivi.com/ajouter-plusieurs-images-a-la-une-divi/, but the image not displayed.
In my functions.php file, I added this :
add_filter( 'kdmfi_featured_images', function( $featured_images ) { $args = 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' ), ); $featured_images[] = $args; return $featured_images; });
And in my single.php :
kdmfi_the_featured_image( 'featured-image-2', 'full' );
I manage to add it in the back office, but the image doesn’t appear in the front.
I’d like to use this image to put it on the left in my template :
Would you have a solution please ? With a plugin or other.
Kind regards,
The page I need help with: [log in to see the link]
- The topic ‘How to Add Multiple Featured Images’ is closed to new replies.