wp_set_object_terms() custom taxonomy not working correctly when using insert post

Đã có trọn bộ đề thi thử THPT Quốc Gia 2022 các môn: vip.dethihsg247.com

I’m using wp_set_object_terms($postId, Array('tag1','tag2','tag3'), 'customtaxonomy');
with wp_insert_post to automatically create a new post.
it will show as

enter image description here

But on wordpress editor it is separated not like combined together as the image above, what I do to fix this is I only need to manually published or click the update button of editor to make them separated

enter image description here

I’m not really sure why it is acting like this?

Xin chào các bạn và quý Thầy Cô. Hãy nhập từ khóa mình muốn vào ô tìm kiếm trên Website để tìm kiếm mọi thứ hoặc trên google các bạn hãy nhập từ khóa + dethihsg247.com để tìm kiếm các bài viết của chúng tôi nhé.
  • Hiện tại chúng tôi có hơn 25 nghìn bài văn mẫu các thể loại.
  • Kho tài liệu, đề thi học sinh giỏi các lớp vô cùng phong phú.
  • Mỗi ngày cập nhật hơn 100 đề thi chất lượng từ các website bán tài liệu lớn.

Tải đề thi VIP với giá siêu rẻ tại Vip.Dethihsg247.Com