Display Images from Array with wp_get_attachment_image() [closed]
check your code pass $image in wp_get_attachment_image not whole array $images. Be careful when pass parameters if ( $images ) { foreach ( $images as $image ) { echo ‘<li>’; echo wp_get_attachment_image( $image, ‘thumbnail’ ); // notice this part echo ‘</li>’; }