Support

Account

Home Forums General Issues Insert Relationship Fields Using update_field() Reply To: Insert Relationship Fields Using update_field()

  • Hi @alfkonee

    Sure, the update_field function can be used to update any postmeta value.
    All you need to do is create an array containing the post ID’s you wish to save as the relationship value, and then use the update_field function to save that array ($value) to the post.

    The docs will explain what parameters are needed for the function to work.

    Thanks
    E