Hi there, I just changed one of the existing custom fields from textarea to a WYSIWYG editor and now all the data in those fields is gone for all posts. If I try to resave it removes all the data in the fields. I went in and changed the WYSIWYG to textarea but it still behaves the same way. Meta Box is on the latest version 5.6.17
The issue is fixed now. I had to go in and delete individual fields and replace them with the same id and it all works now! Looks like a corruption perhaps? It would be a good idea to create a tool to fix corrupted custom fields don't you think?
I'm not able to reproduce the issue on my end from scratch. For now, if you save a field WYSIWYG value in a post then change the field type to textarea and the value still displays as well. Can you please try to reproduce the issue in a fresh install of WordPress and Meta Box?
I think you may have misunderstood my question. The issue has been resolved but I had to go in and delete all the old custom fields and add new custom fields with the same id. Not a big deal for some but for others it may be a huge inconvenience if there are a lot of custom fields. So what I was proposing is a tool that Meta Box can develop which can automatically go in and fix corrupted custom fields, it's just a suggestion 🙂