How do I programmatically get a field's value? I copied node.tpl.php and I pasted it to node--my_content_type.tpl.php. My content type has a price. How can I get its value as a string?
Make sure the field is displayed in the display settings of your bundle (admin/structure/types/manage/bundle/display; replace bundle with the machine name of the content type) and define its settings (e.g., delimiter, prefix suffix).


  


In your template file, add &lt;?php echo render($content['your_field_name']); ?&gt;