Title Vanishes when editing Auto Draft
-
I am creating a custom post type that I built a custom initial post creation process for. I programatically set the title, content, etc. I also set the post_status to “auto-draft” so that if the user backs out of the process, the post will be deleted in time. When I thereafter go to edit the post, the title does not appear in the post editing interface. I can see that the title exists when viewing the post in the database, but the Title field is not populated when entering the edit screen.
If I manually change the post_status to draft by modifying the field in the database, the title shows up fine in the editing interface.
It seems that other post information is retained and displayed when editing an auto-draft – just not the post_title.
Is there a way to have the Post Title field populate with its value as stored in the database when editing an auto-draft?
Note: This is being developed off-line, so I cannot provide a URL, however I can provide code if requested.
- The topic ‘Title Vanishes when editing Auto Draft’ is closed to new replies.