Custom Fields
Re-Envisioned
Support General How can I update the post instead of Insert Reply To: How can I update the post instead of Insert

#13686

calpaq
Participant

Hi Tran,
Thanks for replying,
This is all relaated with wordpress admin
Let me tell you that I am not using any custom code to save posts and use meta box plugins. In my case I am using custom post type, so I have registered post type and by default its menu is added to wp admin so from there adding/updating/deleting posts. WordPress doesn’t validate for post title and it can add same title with different Id. What I want is to validate post title ( i.e. check if post exists and if found retrieve that post and update that instead of creating new post with again same title ). I am using some metabox fields for this post type and now I want to check before insert that if any post exist. So actually I do not want create/insert any new post (if exist ), retrieve the ID and save these meta fields to that existing post, Can you help me in saving these fields with existing post when its already there.
Thanks & Regards