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?
Load node that contains field you need first, with node_load() function and pass that node as parameter. You need node id for that, which can be hard-coded or acquired with view, collected from url, cookie, session or something like that.