Using a Custom Field instead of original title field but only for Custom Post Type
The solution you are working on will always represent multiple database inserts as the post will be saved and then the the title re-saved in a second database write. That is the nature of the save_post hook, since it runs after the primary post save. Additionally, the code you found is wildly overcomplicated. Interestingly, the … Read more