Skip Navigation

[Resolved] Child Custom Post Type Lose link with the related parent when saving

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

Problem:

How to setup the child post form?

Solution:

You can follow our document to setup the child post form:

Relevant Documentation:

https://toolset.com/course-lesson/selecting-parent-posts-when-using-forms-to-create-child-items/

This support ticket is created 2 years, 12 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 3 replies, has 2 voices.

Last updated by morenoT 2 years, 12 months ago.

Assisted by: Luo Yang.

Author
Posts
#2357219

I am trying to insert a new "Priorità" (a custom post type child of CPT "Obiettivi strategici") through a Create Post Child Link in the content template " Template for Obiettivi strategici".

Link to a page where the issue can be seen:
hidden link

I correctly display the locked parent post in the child form, but, after saving, the parent value is not recorded.

Notice that till yesterday it worked. Moreover a similar linked CPT ("Azione"), child of CPT "Prioritàs", worked correctly.

Thank you for advice!

Moreno

#2357419

In addiction, I've noticed that in back-end, if I try to connect the child CPT "Priorità" just created in front-end, to the parent CPT "Obiettivi strategici", I can't find in the dropbox the parent CPT that i've just connected in the front-end and that seems to be disappeared when saving.
Moreno

#2358763

Hello,

The problem you mentioned above is abnormal, please check these:
1) In case it is a compatibility problem, deactivate all other plugins, and switch to WordPress default theme 2022, deactivate all custom PHP/JS code snippets, and test again

2) If the problem still persists, please provide database dump file(ZIP file) of your website, you can put the package files in your own google drive disk, share the link only, also point out the problem page URL and form URL, I need to test and debug it in my localhost, thanks

#2359057

Hi Luo Yang,

it was a really trivial problem. The relationship between parent and child was set by default to a max of 10 child. Now I've changed and it works.

Maybe it should be helpful for the dummy like me to warn when saving that the maximum number of child allowed has been reached.

My issue is resolved now. Thank you!