Skip Navigation

[Gelöst] Mass assign relationships

This support ticket is created vor 5 Jahren, 11 Monaten. 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.

Dieses Thema enthält 1 Antwort, hat 2 Stimmen.

Zuletzt aktualisiert von Diego Pereira vor 5 Jahren, 11 Monaten.

Assistiert von: Diego Pereira.

Author
Artikel
#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