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?
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 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.