Hi @benjaminpott
I think that this issue could be caused by a referencing issue.
In the update_field(...)
function, could you please use the $field_key
to reference the field instead of the $field_name
. For more info, have a look at: http://www.advancedcustomfields.com/resources/update_field/#field_key-vs field_name