Skip Navigation

[Resolved] Changing custom field slug

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

Problem:

I have a custom field group where I have bunch of custom fields. If I change the slugs of the custom fields, will it create any issue, like data loss of the custom fields?

Solution:
Yes, it can produce some issues - which can be resolved, but perhaps it'll be a costly manual labor. For instance:

- we have an image field on a content template
- we go to the Custom Field group of this image field
- change its current slug ('image') to anything different -> 'image-test', for example

After this change, we'll check that the image displaying on the content template just disappears. Because it still thinks that the slug is 'image' - therefore, we would need to select the image field again, in order to make the system recognizes the new slug. Please check the screenshot: https://snipboard.io/rYb0Pl.jpg

This will happen to any field that you change its slug. If you have several fields, you'll need to re-select all of them and maybe it would be a extensive manual work.

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 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 4 replies, has 2 voices.

Last updated by fahimS-2 1 year, 10 months ago.

Assisted by: Mateus Getulio.

Author
Posts
#2572279

I have a custom field group where I have bunch of custom fields. If I change the slugs of the custom fields, will it create any issue, like data loss of the custom fields?

#2572321

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

Thanks for your contact, and welcome to the Toolset support forum!

Yes, it can produce some issues - which can be resolved, but perhaps it'll be a costly manual labor. For instance:

- we have an image field on a content template
- we go to the Custom Field group of this image field
- change its current slug ('image') to anything different -> 'image-test', for example

After this change, we'll check that the image displaying on the content template just disappears. Because it still thinks that the slug is 'image' - therefore, we would need to select the image field again, in order to make the system recognizes the new slug. Please check the screenshot: hidden link

This will happen to any field that you change its slug. If you have several fields, you'll need to re-select all of them and maybe it would be a extensive manual work.

I hope that my explanation was clear. If not, please let me know what is still confusing. Thanks!

Regards,
Mateus.

#2572323

Hi, thanks for your reply. Can it cause any data loss of the custom fields?

#2572837

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Thanks for your reply.

The data for the custom field itself won't be lost - but as exemplified above, it'll disappear from the locations where you're displaying this field, and you would need to re-select the fields in those places.

Please let me know if you still have doubts.

Thank you,
Mateus.

#2573415

My issue is resolved now. Thank you!