Create wp_insert_post + thumbnail