Printing views exposed sort criteria separately to exposed filters Exposed filters are either:
- Printed in views-view.tpl.php using the $exposed variable.
- Printed in a block, probably using the same variable.

This variable ($exposed) contains the exposed sort criteria and filters. I would like to find a way to print them separately. Ideally there would be  a way to use something like:

&lt;div id="sort"&gt;&lt;?php print $exposed-&gt;sort; ?&gt;&lt;/div&gt;
&lt;div id="filter"&gt;&lt;?php print $exposed-&gt;filter; ?&gt;&lt;/div&gt;


Does anyone know of a way you can achieve this? Or in last case how to print each sort and criteria individually?
If you can not use each item of $widgets in separated way, you can push each widget in a separated array for use each widget across your custom html.

&lt;?php foreach($widgets as $id =&gt; $widget): ?&gt;
    &lt;?php
    array_push($elements, $widget);
    ?&gt;  
&lt;?php endforeach; ?&gt;

&lt;?php
echo $elements[0]-&gt;widget;
echo $elements[1]-&gt;widget;
//etc
?&gt;