i have a view and many fields are exposed in it. I need to embed (render) a specific exposed filter in my template.

i have came across this article. But it shows all exposed filters of a view.

any idea how this can be done? thanks

1 Answer 1


Make a views tpl file with name views-exposed-form--view-name.tpl.php in your theme in this file <?php print_r($widgets); exit; ?> this will give you your widgets then print your widget like this: print $widgets['your widget name']->widget ; in end print $button;

  • there is no way to print it directly in page tpl file?
    – brainHax
    Commented Sep 1, 2014 at 11:30
  • 1
    no there is no way to do it directly Commented Sep 1, 2014 at 11:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.