add_post_meta() yı şu şekilde kullanın hocam:
$my_post = array();
$my_post['post_title'] = $c2[3][$a];
$my_post['post_content'] = $s;
$my_post['post_status'] = 'publish';
$my_post['post_author'] = 1;
$my_post['tags_input'] = str_replace(" ",",",$c2[3][$a]);
$my_post['post_category'] = array($category_id); //Kategorinizin idsini 8 olan yere yazınız.
$my_post['post_thumbnail'] = $resim;

$the_post_idit = wp_insert_post( $my_post );
# $the_post_idit insert edilen yazının id sidir.
add_post_meta($the_post_idit, 'resim', $resim);
şöyle de bir fonksiyon tanımlayın :
function resim($yazi_id) {
	$resim = get_post_meta($yazi_id, 'resim', true);
	$cikti = '<img src="'.$resim.'" />';
	echo $cikti;
}
döngünün içerisinde kullanırsınız :
<?php resim($post->ID); ?>