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


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:

</> CopyGet raw version
  1. print $view->field['field_category']->advanced_render($row);


Mohammad's picture

Thank you so much :)