Passer la navigation

[Résolu] Can I copy custom fields from one CPT to another

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:
Can I copy/assign custom fields from one custom field group to multiple post types.

Solution:
You can assign single custom field group to multiple post types.

You can find the proposed solution in this case with the following reply:
https://toolset.com/forums/topic/can-i-copy-custom-fields-from-one-cpt-to-another/#post-2295089

Relevant Documentation:
- https://toolset.com/course-lesson/creating-custom-fields/

This support ticket is created Il y a 4 years, 3 months. 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 4 réponses, a 2 voix.

Dernière mise à jour par janeC-2 Il y a 4 years, 3 months.

Assisté par: Minesh.

Auteur
Publications
#2293717

I created a lot of custom fields for a CPT called 'entries'

Now I am creating another CPT called 'finalists' for the same website and I would like to use the same custom fields.
Is there a way to duplicate them?

Or do I need to create them again?

#2294137

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

When you try to add new custom field and click on "Add New Field" button from your custom field group, it will offer you popuip what type of field you want to create, with that popup you will see a button "Choose from previously created fields" from where you can add the existing fields you created.

Please check the following screenshot:
- lien caché

#2294727

No that's not what I was looking for.

I created about 50 custom fields and I would like to copy the whole Field Set to a new CPT

#2295089

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

So, Lets say you created a Custom Field Group namely "ABC" that holds those 50 fields.

Now, you can edit your custom field group "ABC" and from the settings section available at top, you should click on "Edit" button and you can assign the same field group "ABC" to multiple post types as desired. Please check the following screenshot:
- lien caché

#2295169

Ah! that's it! Thank you

My issue is resolved now. Thank you!