Leave a Reply

1 comment

  1. you need to get the ID back from your post insertion and use that with add_post_meta:

    $post_id = wp_insert_post($post);
    add_post_meta($post_id, 'thumbnail', $yourvalue, true);