Support

Account

Home Forums General Issues String replace in a value Reply To: String replace in a value

  • The checkbox field is still going to return an array. https://www.advancedcustomfields.com/resources/checkbox/

    
    $values = get_field('checkbox');
    if ($values) {
      foreach ($values as $value) {
        echo str_replace(', ', '<br />', $value);
      }
    }