I have a node--content_type.tpl.php template where I want to print the taxonomy term associated with the current content as plain text so that I can surround it with a div class to print a special label for content with the selected term.
So for example I have chosen "Sold" as a taxonomy term and want to display the word with no link to the taxonomy terms page. It currently outputs as "<a datatype="" property="rdfs:label skos:prefLabel" typeof="skos:Concept" href="/taxonomy/term/6">Sold", so links to the taxonomy terms page.
I am currently using this code to print the term:
<?php
if(!empty($node->field_p_status['und'][0]['value'])) {
$status = $node->field_p_status['und'][0]['value'];
}
?>
<?php if(isset($status)) { ?>
<?php print render(field_view_field('node', $node, 'field_p_status', array('label'=>'hidden'))); ?>
<?php } ?>
Any idea how to strip it down so it prints just "Sold"?