Thankyou thure.fransen
That’s the only thing that worked for me!
It’s buried in code I haven’t looked at in weeks, but I think my solution was:
- Use the ‘Title Format’ plugin, which adds a filter to the title so that every time it displays, it replaces the title your custom title. (Set with the plugin settings) This provides an easy way to use your custom fields to create the title, but if you want to replace permanently…
- Using this replaced title, then run an UPDATE query to change the title in the database directly, so that it becomes the actual title in the database and not just a filter whenever you view the title.
This won’t insert your desired title into the db on publish, but will replace the default undefined title the first time you refresh the list of posts.
Hope that makes sense!