Navigation überspringen

[Gelöst] Delete all child post when deleting parent post

This support ticket is created vor 10 Monaten, 4 Wochen. 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 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 1 Antwort, hat 2 Stimmen.

Zuletzt aktualisiert von Minesh vor 10 Monaten, 4 Wochen.

Assistiert von: Minesh.

Author
Artikel
#2701358

Dear Sir/Madam,

I know how to disconnect the relationship between posts, how can I delete all child posts when I delete the parent post? Will it be permanently deleted or put into the trash?

I want to delete all permanently.

#2701405

Minesh
Unterstützer

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

There is no such feature to automatically delete the child posts But you can achieve this by adding the hook that will help you to achieve your goal.

Here is few related ticket that might help you to delete the related child posts when parent post will be deleted:
- https://toolset.com/forums/topic/delete-related-posts-and-their-attachments-when-deleting-parent-post/
- https://toolset.com/forums/topic/delete-child-posts-when-parent-post-is-deleted/#post-1885083

Can you please try to use the hook shared with above related ticket and try to resolve your issue.