We have created a post type "Evidences" but the client has changed the site structure and would like to move the existing post type "Evidences" to a newly created post type "Extraits". Is it possible? What will happen to the relationships? Thanks
Migrating posts into a new post type is one thing, but migrating post relationships between post types is another. I don't know of a simple way to migrate post relationships, because not only will the connections change but the post relationship itself must change. If you end up using different post IDs for these new Extraits posts it will be even more of a challenge. At that point you would have to export and re-import your site content including those post relationships.
Thanks - I understand - As we have about 800 posts in "Evidences", is there an easy way to migrate the posts without the relationships? Tha would save us a lot of time than to have to move them manually. Thanks
I would export the post content from this post type using the WordPress Export tool. That will generate an XML file. Then I would edit that XML file using a text editor application, and change all the post types from the old post type to the new post type. Then I would make sure the new post type is added in wp-admin. Then I would re-import the data into the site.
We'll try this today. I'll let you know. Thanks
Working great. Is there a way to bulk edit relationships and custom fields associated to a custom post type?
There's no way to bulk edit custom fields, at least not built-in to the Toolset software. Other 3rd-party tools claim to be able to handle this, but I can't vouch for any of them. For bulk-editing post relationships, there is a post relationships API that might be useful. Here's another ticket that discusses bulk post relationship assignment: https://toolset.com/forums/topic/bulk-assign-child-posts-to-parent-post/
All worked perfectly including the bulk relationship. Thank you very much!