• Resolved blanch80

    (@blanch80)


    Hi,

    I’m running a standard import, everything is populating as expected except for my ACF field.

    I have an Advanced Custom Field which is listed as an available field in the documentation:
    Group name: Access Group

    • Access Group (type: checkbox) – Column name in the CSV: access_group

    However, when trying to put a value which does exist as an option for that field, it’s not populating on import. I’m hoping you might be able to help?

    The ACF field is setup to only return the value, an example is public : Public, so the value then the label.

    Thanks,

    David.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Javier Carazo

    (@carazo)

    @blanch80,

    You have to use the value as ACF use this value in the database. Surely the problem is this.

    Thread Starter blanch80

    (@blanch80)

    Thanks for getting back to me.

    I am using the ACF value.

    I just added public : Public so you could see the structure of the ACF entries.

    I’m using access_group as the column header, and public as the value. I’ve ensured there are no errant whitespace or characters, and all other values are importing as expected.

    I wondered if there is anything I need to do differently for ACF fields? Does it make a difference that it is a checkbox?

    I tried to add the value as a serialized entry, the user was created with no value in access_groups, but a ‘critical error has occurred on your website’ error message appeared on the confirmation screen.

    The website was still functioning as normal though.

    Plugin Author Javier Carazo

    (@carazo)

    I am not an ACF user and I developed the compatibility to help users who use it.

    I have been studying the addon I prepared for this and I don’t see a different treatment for checkboxes (there is for image, relationship and other data types).

    We use update_field so you could ask ACF support why by doing.

    update_field( $key, $data, “user_” . $user_id );

    Being the correct key and the $data the value “public” how do you account for why it is not updating.

    Tell me what they answer you in case I should change something my part but I understand that not because this addon is managed by thousands of people.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘ACF field issue’ is closed to new replies.