Home › Forums › ACF PRO › ACF Custom Field Type › Reply To: ACF Custom Field Type
Your additions to the field names need to have brackets around them
<input type="text" name="<?php echo esc_attr($field['name']) ?>[image]" id="image_url"
class="regular-text"
value="<?php echo esc_attr($field['value']['image']) ?>">
echo '<input type="text" id="pin_json" name="' . esc_attr($field['name']) . '[json]' . '" value="' . esc_attr($field['value']['json']) . '" /> ';
I’m not sure what the results of not having them would be, more than likely your field name in the form looks something like FIELDNAMEimage
which is a completely different name than you expect it to be.
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.