0

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

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;

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

Your Answer

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

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