2 years later – still helping people out 🙂 Thanks John for the link, works perfectly.
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!
Thanks ajoen – although what you’re experiencing is slightly different. The conditional logic you’re dealing with is to do with what objects a group of custom fields is attached to. I believe what we’re dealing with is conditional display of fields – i.e. if Field X has value of Y, show Field Z. 🙂
Yep – same here. Is there any way of knowing that Elliot / Someone Else is working to fix this?