Skip Navigation

[Resolved] Save child in parent post

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

Last updated by reneeV-2 6 years, 7 months ago.

Assisted by: Shane.

Author
Posts
#906804
child_in_parent_post_save.jpg
child_in_parent_post.jpg

I have setup a site with one to may relationships. I have forms in which the user can add or edit childpost. This is working as expected.
However, when I add a child post in the parent post in the backend and fill out the fields, there is no possibility to save the post. When editing an excixiting child post it is working fine.

#907046

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Renee,

Thank you for contacting our support forum.

Could you let me know exactly how I can replicate this ?

Could you confirm that if I got to a Parent Post and try to add a Child From the parent post it doesnt work ?

Could you let me know what kind of relationship this is ?

Thanks,
Shane

#907121

Hi Shane,

It is a one to many relationship.

I have one parent cpt and it has different child cpt's. All one to many relationships.
As long as I work in the front-end i can create a parent-post and i can create or edit child-posts which are associated with that parent.

If i want to do this in the admin section I can see the parent post and in this parent post are the child posts, just as you would expect. I can edit these child posts and save the changes. I can create a new child post but can't save this post. (first picture).

#907146

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Renee,

Would you mind allowing me to log in and check on this for you ?

The private fields will be enabled for your next response.

Thanks,
Shane

#907469

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Renee,

Could you let me know which CPT I should look at ?

Thanks,
Shane

#907498

Hi Shane,

There is only one parent CPT (bedrijfmo) and it occurs at all the child cpt's. The problem is that I can not save any child post I add.

#907508

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Renee,

Thanks I was able to see the issue.

I would like to ensure that this issue is not caused by a plugin conflict and as such I would like for you to temporarily disable all the non-toolset plugins and try again.

Thanks,
Shane

#907545

Hi Shane,

I disabled all the plugins and the error was still existing. I enabled them and disabled them again just to be sure and the problem was gone. So it is indeed a plugin.

Thank you for your help.