Home › Forums › General Issues › Need help with creating new field type with ACF › Reply To: Need help with creating new field type with ACF
Yes, i checked the generated HTML source, and played with a few versions (with brackets, in quotes…), i’m not expert in PHP…
It still not working, maybe i asked the question wrong.
So the name of the textarea is how ACF knows which field to save (not the ID or class)? So if i want two textarea, they need to have different names.
Now the working field has a name: $field[‘name’] which generates: fields[field_51fbdeb7f1609].
What should i add as a name to the second textarea, and how can i get the value of it?
I can get the value of the field with the $field[‘value’], but it’s just the value of the textare with the name: $field[‘name’].
Uhhh, maybe it’s a bit too complicated for me…
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!
🚨 The 2023 ACF Annual Survey closes tomorrow! This is your last chance to complete the survey and help guide the evolution of ACF. https://t.co/0cgr9ZFOJ5— Advanced Custom Fields (@wp_acf) May 18, 2023
© 2023 Advanced Custom Fields.