Support

Account

Home Forums General Issues Remove commas (checkbox) Reply To: Remove commas (checkbox)

  • you need to either echo each value in the loop or implode and echo only once.

    
    $values = get_field(‘shop’);
    echo implode('<br />', $values);
    

    OR

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

    The benefit of using implode is that it eliminates the ‘<br />` after the final value.