Home Forums General Issues Unwanted Commas on Frontend Reply To: Unwanted Commas on Frontend

  • Solved!

    By referencing this page:

    I noticed the code for displaying multiple values on the frontend is:

    <?php echo implode(‘, ‘, get_field(‘field_name’)); ?>

    So simply by using this but removing the comma it displays the multiple selected values but without adding a comma between each.

    <?php echo implode(‘ ‘, get_field(‘field_name’)); ?>

    I hope this helps someone else!