Skip Navigation

[Resolved] Confirming my understanding of renaming custom fields

This thread is resolved. Here is a description of the problem and solution.

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 3 years, 5 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 – 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 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by lesT 3 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#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!