jmccole83
2/23/2018 - 9:33 AM

ACF | Get all selected options from a multi-select field.

An example of outputting all selected options of a multi-select field.

Add to templates as required. Outputs a comma delimited list of selected options.

<?php $sectors = get_field('main_sectors'); ?>
<?php if ( $sectors ): ?>
<span><?php echo implode(', ', $sectors); ?></span>
<?php endif; ?>