Featured Image 2 is not displaying
-
Hi Ankit
I’ve tried several times to display the second featured image in a custom post but it is not working. It is only showing the main featured image.
if( $style == 'single-photo' && ! $hide_photos ){ $output .= '<div class="single-photo-img">'; if( has_post_thumbnail() ){ $output .= get_the_post_thumbnail( null, 'testimonials', array('class'=>'scale-with-grid' ) ); } else { $output .= '<img class="scale-with-grid" src="'. THEME_URI .'/images/testimonials-placeholder.png" alt="'. get_post_meta(get_the_ID(), 'mfn-post-author', true) .'" />'; } $output .= '</div>'; }
this is the code for displaying the main featured image. would you please tell me how to display the second featured image ?
- The topic ‘Featured Image 2 is not displaying’ is closed to new replies.