Support

Account

Home › Forums › General Issues › update relational link field programmatically › Reply To: update relational link field programmatically

  • figured it out. you need to store the link information in an array before updating with update_field

    			$attachment_array = array(
    				'url' => $AttachmentURL,
    				'title' => 'link text',
    			);
    			
    			update_field('field_604d273d1433e', $attachment_array, $post_id);