Skip Navigation

[Resolved] Change from posts2posts to toolset

This thread is resolved. Here is a description of the problem and solution.

Problem: I would like to import posts from another site. These posts were originally related in M2M relationships using posts2posts, but I would like to import them into Toolset M2M relationships.

You can import content using CSV, including post relationships. If custom CSV files aren't possible, we offer a PHP API that can help you programmatically associate existing posts after import.

Relevant Documentation:

This support ticket is created 5 years, 1 month 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.

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 2 replies, has 2 voices.

Last updated by Jo4nny8 5 years, 1 month ago.

Assisted by: Christian Cox.


Tell us what you are trying to do?
Convert existing many to many relationships to toolset
Is there any documentation that you are following?
hidden link

I previously contract you regarding a need to convert an existing many to many relationships to toolset.

The plugin used custom tables as does toolset. Are you able to offer any advise to help me convert around 1000 posts / relationships 🙂


Hi, if you're able to export the posts-to-posts data in a custom CSV format, you can import that information into Toolset. We have some information about importing posts and post relationships using CSV files, available here:

If you're not able to generate custom CSV files, a custom code solution might be necessary. We have information about programmatically defining Toolset relationships with the Post Relationships API here:

We also have a contractor portal available where you can connect with independent professionals who are knowledgeable about Toolset:


Thank you for the information.
I was able to export the previous connections via the database.
I then created the new connections in toolset and used the api to programmatically create the connections automatically via php. 880 post connections updated and created within 30 minutes.


This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.