Skip Navigation

[Gelöst] Bulk Disconnection of Related Posts

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem:
The customer asked if there is a way to bulk disconnect post-relationships and would the post-relationship connections would be deleted if the participating post is deleted.

Solution:
Guided that there is no feature or interface available to bulk disconnect the related posts and once you'll trash and then permanently delete a participating post, it will effectively disconnect all its post-relationship connections too.

Relevant Documentation:
n/a

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

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

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/Karachi (GMT+05:00)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von aaronM-9 vor 2 Jahren, 3 Monaten.

Assistiert von: Waqar.

Author
Artikel
#2425413

I have a one-to-many relationship between posts and another post type ('channels'). One of the channels currently has over 1,000 connected posts and I would like to disconnect all of them but retain the channel (basically, I want to remove historical posts because they should never have been connected to this channel).

Question 1: Is there a way to bulk disconnect posts without deleting the channel itself?

Question 2: If not, will deleting the channel and then recreating it effectively disconnect all the posts, or will there be a bunch of orphaned relationships left behind in the database?

Ideally, I would like the channel to use the same slug so the URL's are friendly. Thanks for the help.

-- Aaron

#2426083

Hi Aaron,

Thank you for contacting us and I'd be happy to assist.

> Question 1: Is there a way to bulk disconnect posts without deleting the channel itself?
- There is no built-in feature or interface available to bulk disconnect the related posts.

> Question 2: If not, will deleting the channel and then recreating it effectively disconnect all the posts, or will there be a bunch of orphaned relationships left behind in the database?
- If you'll trash and then permanently delete that channel post from the admin area, it will effectively disconnect all its related posts too and no orphaned relationships will be left behind.

> Ideally, I would like the channel to use the same slug so the URL's are friendly.
- Yes, once the channel post has been permanently deleted, you'll be able to create a new one with the same name and the slug.

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#2428143

My issue is resolved now. Thank you!