Render another field in views-view-field.tpl.php

Public

Sometimes you will want to combine several view's fields in one view field and built in Views UI rewrite results option is not enough. In this case you can render any field of the row this way (example for a category field), in your views-view-fields.tpl.php write this:

Get raw version
php
  1. print $view->field['field_category']->advanced_render($row);

Comments

Mohammad's picture

Thank you so much :)