Passer la navigation

[Résolu] Saving parent and child categories in different custom fields.

This support ticket is created Il y a 3 years, 9 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
- 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 -

Fuseau horaire du supporter : America/Jamaica (GMT-05:00)

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

Dernière mise à jour par anujM Il y a 3 years, 9 months.

Assisté par: Shane.

Auteur
Publications
#2438725

Tell us what you are trying to do? I have category field on crud form. i want to save selected category included child and parent separately. suppose i have these categories: main category electronics sub category television sub-sub category LG.

First user can only select the last child category i.e Lg

If user select LG then I want to save all three categories/subcategories in different custom fields of save form hook.

Is there any documentation that you are following? No

Is there a similar example that we can see?lien caché

What is the link to your site?lien caché

#2439051

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hello,

Thank you for getting in touch.

Unfortunately this is something that will require complete custom code to achieve.

The custom code that will be required to do this is out of the scope of our support forum. However you will need to use the hook below as a starting point.
https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data

Please let me know if this helps.
Thanks,
Shane

#2441495

My issue is resolved now. Thank you!