Add field date to node tpl I'm using a template that has this on the portfolio.tpl:



But I don't want to display the date of node created.
So, I added in the content type portfolio a field "date_field" (please see picture)

What I need now is to display this field on the tpl, replacing the "$node->created".

This is what I tried:



But it doesn't work.

How can I accomplish this?
Make sure that the field is visible under 'Manage Display' for the view mode you are working with.

If you setup the field to display in a format you like you can also just do this in your template file (instead of the format_date() part):

&lt;?php print render($content['field_date'] ?&gt;


In any case make sure that you also do the following before $content is rendered:

&lt;?php print hide($content['field_date']) ?&gt;