if term reference is value X in tpl.php file 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.

&lt;?php $page_type = field_get_items('node', $node, 'field_page_type');
if ($page_type == 'Standard') {
    print "worked";
} ?&gt;


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.
The above use of field_get_items('node', $node, 'field_page_type'); is going to return an array that looks like: 

Array
(
    [0] =&gt; Array
        (
            [tid] =&gt; 549
        )

)


But what you want is the value of the term so you'll need to do the following: 

&lt;?php $page_type = field_view_field('node', $node, 'field_search_type');
if ($page_type['#items'][0]['taxonomy_term']-&gt;name == 'Standard') {
    print "worked";
} ?&gt;