Skip Navigation

[Resolved] Saving parent and child categories in different custom fields.

This support ticket is created 2 years, 3 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 – 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 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 2 replies, has 2 voices.

Last updated by anujM 2 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#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?hidden link

What is the link to your site?hidden link

#2439051

Shane
Supporter

Languages: English (English )

Timezone: 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!