Support

Account

Home Forums General Issues ACF post selected labels list in WP_Query Reply To: ACF post selected labels list in WP_Query

  • 
    
    <?php $field = get_field_object('custom_field_name');
    
    $value = $field['value'];
    
    if( $value ): ?>
    <ul>
        <?php foreach( $value as $label ): ?>
            <li><?php echo $field['choices'][ $label ]; ?></li>
        <?php endforeach; ?>
    </ul>
    <?php endif; ?>