$insert = $wpdb->insert( $prefix."posts", array("post_title" => $posTitle,"post_content" => $postContent,"post_status" => "publish","post_type" =>"product"));
I insert image path in wordpress posts table and post parent contain ID of product ID also add _thumbnail_id in postmeta table product id my main focus is to display image in post product page in wp-admin