Generate CSV file and add data as a new wordpress custom post
There’s a few options for where to put your wp_insert_post call; it all boils down to order of desired operations within the functionality as you’ve presented it. If you want to create the post as soon as the array has been compiled/populated, and as some renderable markup: create a string variable and loop through the … Read more