I have used this code to print normal text fields in a print.tpl.php template file:
<?php if(isset($node->field_mytextfield['und'][0]['value'])) {
print $node->field_mytextfield['und'][0]['value'];
}
?>
But that same code will not work with Computed Fields I have set up in that same content type. The content type has a "Print" display type, and I have tried all of the Format options (Unsanitized, Plain Text, Filtered Markup, and Raw Value No Display Code) for the computed fields, to no avail. How can I print the formatted values of those computed fields, exactly as they are displayed by the actual fields themselves?
I also have a Textarea field that prints as a single line of unformatted text using the code above. How can I print the formatted value of that field when Full HTML is used to enter info into that field?
Thanks!