I have an issue, i create three input in frontend(title, body, and name)
I process the value using wp-ajax, and in my ajax function I use wp_insert_post to create a new post.
if I put 'post_status =>' publish' in my wp_insert_post, I get error 500 in ajax-admin, but if I remove it my code is fine.
I want create a post with publish status. I also already put wp_publish_post after wp_insert_post in same ajax-function. but also getting 500 error.
Is there any solution for this issue?