Custom template fields Drupal 7 In Drupal 6, I was able to use a Row Style Fields template and create variables to arrange and print later i.e.:

foreach ($fields as $id =&gt; $field) {
  if ($field-&gt;label == "Phone") {
    $f_phone = $field-&gt;content;
  }
}
print "&lt;h2 class='content'&gt;${f_phone}&lt;/h2&gt;\n";


Then I was able to use the variable $f_phone in other places in the template.  This does not work in Drupal 7.  I am instead getting variable not found errors. 

How would I do this in D7?
I figured I would reply to this question since I figured out an answer.  Don't know if this is the best way, but it works. 

If you use the views-view-fields.tpl templates, you can skip the loop and directly list and style your fields ie:

print $fields['title']-&gt;content; 
print $fields['field_location']-&gt;content; 


**the code above is inside your php tags