Passer la navigation

[Résolu] Update relationships field by function

This support ticket is created Il y a 3 years, 3 months. 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.

Ce sujet contient 1 reply, a 1 voix.

Dernière mise à jour par andreaV-4 Il y a 3 years, 3 months.

Auteur
Publications
#2553645

Hi,
I would like to update a report by function.
For the fields I use

add_post_meta($post_id, 'wpcf-filed', 'value');

For relationships how should I proceed?
I have tried

add_post_meta($post_id, '@relations_parent', 'value');

but it doesn't work.

Regards

#2553813

My issue is resolved now. Thank you!