I'm using a front-end form and
wp_insert_post to update posts from the front-end of a website - in order to do this I am using:
'ID' => get_the_ID(),
to make sure it is updating the current post (the form appears on the posts page). I am using the below to edit the post content:
'post_content' => $_POST['postContent'],
(this takes the result from a submitted form).
However, on save the information is submitted in to the post but all other post data seems to be reset such as the title and post password.
Is there any way to stop this happening? it seems like some very odd default functionality.