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 demoed ACF 6.1 Beta during the most recent session of ACF Chat Fridays, highlighting the new ability to regenerate and clear labels, setting the Admin Menu Parent as a slug, and more. Catch the video replay in our latest summary. https://t.co/rHEpPVas64 pic.twitter.com/hB1XKTexXi— Advanced Custom Fields (@wp_acf) March 23, 2023
© 2023 Advanced Custom Fields.