I want it so that in my page.tpl.php file if the user has selected "Standard" as the "Page Type" term reference it prints an extra bit of html.
I tried something along the lines of the code below but have not had any luck so any help would be greatly appreciated.
<?php $page_type = field_get_items('node', $node, 'field_page_type');
if ($page_type == 'Standard') {
print "worked";
} ?>
If I print the "field_page_type" value further down the page it prints "Standard" on the page but if I use the if statement above it doesn't print the "worked" result.
I am using Drupal 7.