Skip Navigation

[Resolved] Mass assign relationships

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

This topic contains 1 reply, has 2 voices.

Last updated by Diego Pereira 5 years, 10 months ago.

Assisted by: Diego Pereira.

Author
Posts
#1185932

For a many-to-many relation (possibly other relations), mass assign new items according to what other posts are assigned to.

For example I have two custom post types with a many-to-many relation.

Devices and Drivers.

When a new driver version is released for a device (whereby multiple devices can use this driver), I want to assign this new driver to all devices which have the older driver assigned.

Is that possible somehow?

Best regards,
Sven

#1186014

Diego Pereira
Supporter

Hello @svenG, welcome to the Toolset support Forum!

Unfortunately it's not possible to do that natively, so it will require some custom coding, which it's not part of our support policy: https://toolset.com/toolset-support-policy/

We recommend to check our list of experienced contractors available here: https://toolset.com/contractors/

This is the documention of the relationship API (which might be useful): https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/

Please also take a look at this link: https://toolset.com/documentation/programmer-reference/

All the best,
Diego