How do I group my fields in a view? I have a content type (Staff Member) with many fields, such as portrait, name, and bio. The name and bio fields are grouped together under the field group _text_fields_.

I have created a view for this content type.

The view renders each content node like this.

&lt;div class="views-row"&gt;
  &lt;div class="staff photo"&gt;&lt;img src="...." /&gt;&lt;/div&gt;
  &lt;div class="staff name"&gt;John Doe&lt;/div&gt;
  &lt;div class="staff bio"&gt;John Doe has been with us for 800 years.&lt;/div&gt;
&lt;/div&gt;


However, I want grouped fields to be grouped like this.

&lt;div class="views-row"&gt;
  &lt;div class="staff photo"&gt;&lt;img src="...." /&gt;&lt;/div&gt;
  &lt;div class="text_fields"&gt;
    &lt;div class="staff name"&gt;John Doe&lt;/div&gt;
    &lt;div class="staff bio"&gt;John Doe has been with us for 800 years.&lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;


I've tried writing a views-view--staff-members.tpl.php template file, but it receives all of the .views-row items as a HTML string.

How might I accomplish this?
You don't need to modify your .tpl, you only need the Field Group module to group your fields together. With this module you have the possibility to add groups to wrap their fields together. Fieldgroup comes with default HTML wrappers like vertical tabs, horizontal tabs, accordions, fieldsets or div wrappers.

You can read the documentation where you will find some examples.