Tell us what you are trying to do? My customer is asking to change the multiple lines fields to WYSIWYG field because they do not want to deal with HTML.
Is there any documentation that you are following? I have found serveral posts on the topic, but mostly old support threads which suggest solutions which do not work aymore. One mentions removing the multiple lines field and adding a WYSIWYG field with the same name, but that did not work. Another threads mentions 'wpcf custom fields control', but I'm unable to find/access that feature.
So, is there a way to switch from multiple lines to WYSIWYG? If not, is there a way to automate the content from the multiple lines field to go to the WYSIWYG field?
It is only possible to convert field types between simple fields (e.g. a URL and an email field are each stored as simple text), whereas WYSIWYG is a complex field and cannot be converted to or from.
Deleting the existing field so that you could make a new field with the same slug would only work if you deleted all of the data, too, so that there were no remnants found in wp_postmeta, but that defeats the purpose.
Do you use any data import/export tools? You could export the posts that have this field, delete the field including its content, create a new WYSIWYG field, then import the data back again making sure you use the appropriate slug.
Otherwise we could probably help with some code to loop over all of your posts, get the existing field value, duplicate it in a new WYSIWYG field, then delete the existing field.
Thank you for your insights. Can you recommend any data import/export tools?
The fields I'm taking about are used in most of the sites content. I need to get it right 😉
Thank you for your insights. Are there any data import/export tools you can recommend for this purpose?
The fields I'm talking about are used throughout most of the site, so I need to get it right 😉