<?php print $node->field_test[$node->language][0]['value']; ?>

I have a selection list (Key|Label) and I am trying to display the label instead of the key. The above code and everything else I can think to try only display the key. How do I print the label?

Thank you.

Comments

hampshire’s picture

I still have not been able to figure this out and can think of nowhere else to search. I assume everyone must be doing this as the key often has little value in a template. What replaced ['view'] in Drupal 7?

Thanks.