Skip Navigation

[Resolved] Switching from multiple lines field to WYSIWYG field

This support ticket is created 3 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 5 replies, has 3 voices.

Last updated by wimD-2 3 years, 2 months ago.

Assisted by: Shane.

Author
Posts
#2183499

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?

Thanks for your help,
Wim

#2183771

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

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.

#2183797

Hi Nigel,

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,
Wim

#2183803

Hi Nigel

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 😉

Thank you,
Wim

#2184115

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Wim,

Happy Nigel was able to get this one started for you. However there are 2 plugins that I would recommend:
https://wordpress.org/plugins/wp-ultimate-csv-importer/

hidden link

Please let me know if this helps.
Thanks,
Shane

#2184331

Hi Shane

Thank you for the recommendations! It seems WP Ultimate CSV Importer exactly does what I need to solve the issue. I'm going to give that one a try.

Thank you guys for your help,
Wim