Saltar navegación

[Resuelto] Confirming my understanding of renaming custom fields

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:

Can I change the custom Field Name and Field Slug?

Solution:

Yes, you just need to change the custom field settings: Field Name and Field Slug, you don't need to re-save your posts.

Relevant Documentation:

This support ticket is created hace 3 años, 11 meses. 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Zona horaria del colaborador: Asia/Hong_Kong (GMT+08:00)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por lesT hace 3 años, 11 meses.

Asistido por: Luo Yang.

Autor
Mensajes
#2150175

Want to change field name that is referenced by PHP
Your ticket #1396555

Just confining from the above tickets that I can change a custom field name from Range2 to toPilot
by updating the Field Name and Field Slug in Toolset > Custom Fields > My_Field_Group > Range2
and I will then only have to change wpcf-range2 to wpcf-toPilot in the various php modules that reference it
Thanks

#2150405

Hello,

I assume we are talking about below ticket:
https://toolset.com/forums/topic/steps-to-rename-custom-field-best-practice/
Yes, you just need to change the custom field settings: Field Name and Field Slug, you don't need to re-save your posts, but I suggest you backup your website database first.

And if you are using custom PHP codes to display those custom codes, you need to change your custom PHP codes with new field slugs.

#2153223

My issue is resolved now. Thank you!