I’m using a plugin for Word press to set 2 featured images for post.
I need to make a if statement to check if the second featured image is set.
If it is set it will display the code scenario 1.
But if its not set, and if its not set then i need to display code scenario 2.
here is the function code i need to check, This displays the second image.
<?php kd_mfi_the_featured_image( 'featured-image-2', 'post' ); ?>
You should use kd_mfi_get_the_featured_image: