How to output custom field of Content type in page.tpl.php? I want to display a custom field which I created in my custom Drupal theme.

The field I created called "Startnummer" so the machine name of the field (I didn't change it) was created as "field_startnummer".

Furthermore, I found an article of that topic an the answer is to put the following line into my page.tpl.php:

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


Unfortunately, that doesn't work!

The next problem is, I do not know how other people would call that problem, so I can't find any solutions.

Any help?
To output content types fields within a template you'll need to create a specific node.tpl.php for that content type for example node--article.tpl.php and then using the code you already have above should work.