Skip Navigation

[Resolved] How do I delete intermediary posts without deleting associated relationships

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)

This topic contains 5 replies, has 2 voices.

Last updated by Minesh 1 year, 1 month ago.

Assisted by: Minesh.

Author
Posts
#2654775

Tell us what you are trying to do?

Currently, some of our relationships were created with the "Create an intermediary post type" checkbox checked on, even though those relationships didn't require them. So we are left with many orphaned empty pages being populated on the front-end for each relationship. Is there a way to delete these without deleting any of the relationships?

#2654825

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

*** Please make a FULL BACKUP of your database before performing the following action.***

To delete the leftover intermediary posts:

You should try to navigate to:
Toolset => Dashboard
- On this page on top right corner click on "Help" button
- Further click on "Toolset Debug" tab and click on the link "Toolset Debug Information and Troubleshooting ."
- On Troubleshooting page - you will see a section "Delete leftover intermediary posts", within this section you should click on the button "Delete leftover posts"

#2655977

So just to clarify, these are not "left-over" intermediate posts, the relationships I have set-up are still in force, and necessary. I just don't need the intermediate posts, and I believe the setting to have intermediate posts for that relationship were set up by mistake. If I go through this process, will it get rid of these intermediate posts, even though they're still connected to relationships? Will it delete the relationships as well?

#2658439

Minesh
Supporter

Languages: English (English )

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

When you will have many-to-many post relationship the intermediary post type sits between the two post type to form many to many post relationship.

Having said that - The intermediary post type single post item holds the information that shows that the post X of post type "ABC" is is connected connected with post Y of post type "PQR". If you have intermediary post type custom fields that that information also be available with this single item in addition. So, this intermediary post type is required actually to form many to many post relationship.

If you want to hide the intermediary post type displaying from the backend you should just edit your post relationship and uncheck the checkbox setting "Intermediary Post Type visible in WordPress admin menu." from your edit many-to-many post relationship page.

#2659255

I'm less worried with these posts appearing on the back-end, and more so worried about blank pages generated from the intermediate posts appearing on the front-end, and in Google's search index.

#2659445

Minesh
Supporter

Languages: English (English )

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

You must be using the SEO plugin that and with that you should be able to find the option to add noindex or nofollow.

Here is the related ticket that might help you:
- https://toolset.com/forums/topic/add-nofollow-to-custom-post-types-used-in-a-mulit-relationship/

Can you please check such option with your SEO plugin and set your post type/posts to noindex and nofollow.

#2660563

Gotcha, so those posts are required for toolset to work with many to many relationships, and I will just have to declare them no index directly.