I need to retrieve the field values in 1 page.tpl.php on my template.php.
The normal way to retrieve a field in a page.tpl.php is:
$field = field_get_items('node', $node, 'field_name');
$field_name = field_view_value('node', $node, 'field_name', $field[0]);
The page.tpl.php is normally located in the "sites\all\themes\themename\templates" directory
The template.php file is located in the "sites\all\themes\themename" directory
I got to pull the field values in page.tpl.php in my function located in template.php.
Can anyone suggest an appropriate way of doing this or even give me the working solution for this?