how to get the values from views in page template I created a view (page name 'Archives') to load the following values from all the posts of a particular content type.
Year = field_year
Volume = field_volume
Issue = field_issue
By using views I couldn't get the desired output. So, I created a template file (views-view--archives--page.tpl.php) and wrote the following code. Please see the attached screenshot &amp; code below. Please help me in correcting the code. This would be a great help. Thanks

&lt;ul&gt;
 &lt;?php foreach ($view-&gt;style_plugin-&gt;rendered_fields as $delta =&gt; $item): ?&gt;
  &lt;li&gt;
    &lt;span class="view-header"&gt;&lt;?php print $item['field_year']." (volume - ".$item['field_volume'].")"; ?&gt;&lt;/span&gt;
    &lt;span class="view-issues"&gt;&lt;?php print "Issue ".$item['field_issue']; ?&gt;&lt;/span&gt;
  &lt;/li&gt;
 &lt;?php endforeach; ?&gt;
&lt;/ul&gt;
You should use the Views templates (under Advanced > Other > Theme: Information). It gives several output types. When you create a Views specific template file, it passes a whole bunch of variable/values that you have chosen in your Views to the Views template file. Then you are free to use it like how you want. Read more info at http://views-help.doc.logrus.com/help/views/analyze-theme