advanced custom fields echo string replace code example
Example: advanced custom fields echo string replace
$values = get_field('checkbox');
if ($values) {
foreach ($values as $value) {
echo str_replace(', ', '<br />', $value);
}
}
$values = get_field('checkbox');
if ($values) {
foreach ($values as $value) {
echo str_replace(', ', '<br />', $value);
}
}