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.
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.
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.
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/
Thanks for the clarifications! Feature request submitted.