Support » Plugin: ACF Theme Code for Advanced Custom Fields » How to show space or comma in checkbox

  • Resolved lahorimela

    (@lahorimela)


    Hello,
    I want to ask that your code is showing my checkbox text but not making separate. Can you please guide me that how I can add comma?

    <?php // job_qualification
    $field = get_field_object( 'job_qualification' );
    $value = $field['value'];
    $choices = $field['choices'];
    if ( $value ):
    	foreach ( $value as $v ):
    		echo $choices[ $v ];
    	endforeach;
    endif; ?>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.