Support

Account

Home Forums General Issues How to import (wp all import) the custom fields attached to each term using ACF? Reply To: How to import (wp all import) the custom fields attached to each term using ACF?

  • Hi @sunilkushwaha01

    Have you tried the code I gave you before? It will create an array of your the field name and the field key like this:

    Array
    (
        [checkbox] => field_56d988f557b3e
        [clone] => field_57b00d4d407ff
        [email] => field_56d986a0eb917
        [number] => field_56d9866e09dca
        [text_area] => field_56d986186d8ae
        [text] => field_56d985c1ebeb2
    )

    Then you can just get the field key like this:

    $field_name = 'text';
    $field_key = $fields_list[$field_name];

    But if you could use the field key in the CSV file, that would be great! Just make sure that it won’t confuse you when you need to check the file.

    Hope this helps 🙂