Toolset allows you to merge existing one-to-many relationships that you used to simulate many-to-many relationships. This automatically creates connections between posts that were linked through linked one-to-many relationships.
There are a few important things to consider before proceeding to merge relationships.
- Do the merging on a staging copy of your original site, not on a live one.
- Any shortcodes, query filters, and custom code that use the slugs of the post relationships you are merging will stop working after the merge. In this case, you will have to manually adjust your site to restore the affected features.
Go to the Toolset -> Relationships page and select the post relationships you want to merge. Please note that you can only select post relationships that share the same child post type. Additionally, that child post type should not be used in any other relationships.
Select Merge in the dropdown menu and click Apply.
The Merge relationships dialog appears with a summary of selected post types and the changes that will be applied. It also allows you to customize the name and slug of the new many-to-many relationship that will be created.
When you are ready, confirm you understand the involved risks and click Merge. Toolset will perform the merge and provide you with a summary when done.
The Relationships page will now display the new many-to-many relationship.
When you edit existing posts that were connected using linked one-to-many relationships, you will see them automatically connected using the merged many-to-many relationship.