0

I am trying to setup my views exposed filter form block in a custom tpl. How do I do this programatically? Note: My views setup display type is a page with a separate exposed filter form block.

1 Answer 1

1

views_embed_view displays the whole views block. Therefore in your template you put:

print views_embed_view('most_read_today', 'block_1');

If you are needing to pass arguments to your 'exposed filter', add a 3rd argument.

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.