wp_insert_post() creates duplicates with ‘post_status’ => ‘publish’
I took your code an minimized it, and made a .csv with 3 rows, and was able to get the same error as you. However, I got three instances of the same post. No coincidence that I have 3 rows in my csv. Your insert code is right, so it has to be the hook … Read more