Skip Navigation

[Resolved] Update relationships field by function

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 1 voice.

Last updated by andreaV-4 1 year, 10 months ago.

Author
Posts
#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!