Skip Navigation

[Resolved] Remove unused intermediary post types

This support ticket is created 5 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 4 replies, has 2 voices.

Last updated by Paul Bowman 5 years, 7 months ago.

Assisted by: Christian Cox.

Author
Posts
#1224030

I’ve imported Types data from one project site to another. Some of the imported custom post types are of the ‘intermediary post type’ kind. They are associated with relationship posts that exist in the site they were created for but do not exist in the site I’ve imported them to.

I would like to remove these unused intermediary post types, but it seems that Types doesn’t permit this. An intermediary post type can be deleted when the relationship post it’s associated with is deleted, apparently, but if it’s not associated with any relationship post, it’s untouchable, so to speak.

#1224036

Hi, ideally you would deselect the intermediary post type and relationship during the Types import process. Otherwise after the import you can edit the post type and set it to "Draft" status instead of "Publish". Uncheck all the checkboxes in the Options panel except "exclude_from_search". This will remove the intermediary post type from most of the interface except the post type editor screens. Any other type of intervention will require manual database manipulation, which we do not recommend.

#1224066

Yeah, I missed it on import. I’ll be more careful at that stage in future. Unfortunately, I seem to be stuck with this clutter in the existing project unless I do something drastic, like starting over.

From what I can tell, if there’s no relationship that it’s associated with, the intermediary post type is in draft status by default on import, and it can’t be set to ‘published.’ Even when it’s in draft status, though, an intermediary post type appears as an active item in the post types listing.

It would be nice if there were some way to show the post types listing with these unused items hidden, at least.

#1224069

You could export and import everything again, but exclude those intermediary post types this time around. Otherwise manual database manipulation would be required, since the current software does not allow you to delete the post type from wp-admin. If you'd like to have the ability to delete an intermediary post type from the post type list, you can submit a feature request over here: https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

#1224105

Thanks for the clarifications! Feature request submitted.