Answers for "advanced custom fields echo string replace"

PHP
0

advanced custom fields echo string replace

$values = get_field('checkbox');
if ($values) {
  foreach ($values as $value) {
    echo str_replace(', ', '<br />', $value);
  }
}
Posted by: Guest on February-02-2021

Code answers related to "advanced custom fields echo string replace"

Browse Popular Code Answers by Language