Import WPGet Pro
Menu

Advanced Custom Fields

Advanced Custom Fields FAQ

If Import WP cannot see an ACF field group, relax the field group location rules so those fields appear in the mapper.

These notes cover two common ACF import issues. See the ACF importer.

Unable to find ACF field in Custom field list

If the location settings of your ACF field group have been restricted, Import WP can sometimes be unable to find the related field groups, to solve this issue can unrestrict the list of ACF custom fields that the Import WP uses with the fillowing code:

add_filter('iwp_acf/get_fields_filter', function ($args = []) {
    return [];
});

How to use an ACF field as the Unique Idenfier

When importing records containing acf data, instead of using the templates default unique identifier you can instead use an acf field. To start with you need to find the name of the acf field, this can be found under the name field or column when editing the acf field group.

ACF field group editor showing the Custom Ref field name custom_ref

In this example we will be using field labelled “Custom Ref”, the field name is “custom_ref”.

On the “Template fields” step of the importer, add reference field to the custom field list, on the dropdown it should be prefixed with “Advanced Custom Fields – {field label}”, and set its value from the xml or csv field.

Import WP Template Fields step mapping an ACF field labelled Custom Ref

Once saved, on the “Permissions” step, set the unique identifier to the field name, in this case the field is named: “custom_ref”.

Import WP Permissions step with unique identifier set to the custom_ref ACF field

See the ACF importer.

Updated 2023-03-31