Home › Forums › General Issues › Custom ACF Field Type – Phone number › Reply To: Custom ACF Field Type – Phone number
Now I have managed to store the data.
But now, there is a problem to get the value from the db.
The saved data looks like:
a:4:{s:14:"country_prefix";s:2:"43";s:9:"area_code";s:1:"1";s:12:"phone_number";s:6:"666666";s:14:"direct_dialing";s:4:"0111";}
But, when i debug the $field var at the backend output i only get this data:
Array
(
[seperator] => -
[country-prefix] => +
[key] => field_54848f4ff3185
[label] => test
[name] => fields[field_54848f4ff3185]
[_name] => test
[type] => phonenumber
[order_no] => 26
[instructions] =>
[required] => 0
[id] => acf-field-test
[class] => phonenumber
[conditional_logic] => Array
(
[status] => 0
[rules] => Array
(
[0] => Array
(
[field] => field_545fc78e1d45a
[operator] => ==
[value] => 0
)
)
[allorany] => all
)
[field_group] => 137
[value] =>
)
The value is missing…
…also in the frontend
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.