Print just the value of Views field inside of views-view-fields template I cannot for the life of me figure out how to print the value of a field in the 'fields' template.  Currently, I'm doing this to strip the unnecessary html (don't laugh):

&lt;?php $shortContent = $fields['field_short_name']-&gt;content; ?&gt;
&lt;?php $shortText = strip_tags($shortContent); ?&gt;
&lt;?php $strategy = $fields['title']-&gt;content; ?&gt;
&lt;?php $cleanStrategy = strip_tags($strategy); ?&gt;
&lt;?php $company = $fields['field_money_manager_company']-&gt;content; ?&gt;
&lt;?php $cleanCompany = strip_tags($company); ?&gt;


&lt;?php echo '&lt;img class="logo" src="/sites/all/themes/trust/img/mmx-logos/' . $shortText . '-logo.png" /&gt;'; ?&gt;


&lt;div class="row-heading"&gt;
    &lt;?php echo '&lt;h2&gt;' . $cleanCompany. '&lt;/h2&gt;'; ?&gt;
    &lt;?php echo '&lt;h3&gt;' . $cleanStrategy . '&lt;/h3&gt;'; ?&gt;
&lt;/div&gt;&lt;!--end row-heading--&gt;


How can I just get the value of the fields without having to print the entire 'content' and then strip the unnecessary elements?
I guess you want to create a row header which contains some value from other fields. If it is your case, I will suggest you this solution.



Use fields in format



Add field Global: custom text



Then you can use the token, which is the value of field, with your custom HTML structure.

 

Please note that custom text field must be placed after the field you want to use. In my case, it is title. You need to exclude it from display, otherwise, there will be 2 titles.