Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

advanced custom fields echo string replace

$values = get_field('checkbox');
if ($values) {
  foreach ($values as $value) {
    echo str_replace(', ', '<br />', $value);
  }
}
Source by support.advancedcustomfields.com #
 
PREVIOUS NEXT
Tagged: #advanced #custom #fields #echo #string #replace
ADD COMMENT
Topic
Name
7+1 =