Support

Account

Home Forums General Issues Checkbox – Display Particular Choice Value Reply To: Checkbox – Display Particular Choice Value

  • I’ve been tearing my hair out on this – and I’m sure by now you’ve found a solution or a workaround, but this is what worked for me.

    The situation seems to be that $value returns an array rather than a value, so you need to return the first element in that array, like this:

    <?php
    $field = get_field_object('tabs_used');
    $value = get_field('tabs_used');
    $label = $field['Experience'][ $value[0] ];// adding the [0] to your code
    ?>
    <h2><?php echo $label; ?></h2>

    Hope that works for you!