Home › Forums › General Issues › String replace in a value › Reply To: String replace in a value
get_field() for a checkbox field returns an array of values, not a string. the_field() outputs a comma separated sting because it is attempting to stringify the array.
echo implode('<br />', get_field('my_field'));
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.