I have a custom tpl file for a node type, in this file i want to load a views block i created. This block has a custom template file to style the block itself.

I load the views block in the node template file with views_embed_view() but this just gives me the default html of the block and not the output of the blocks tpl file.

Is this possible with the views_embed_view() function or do i need to use some other function?

1 Answer 1


So to do this you just need to use the views_embed_view() function. I just had a typo in my template file.

So for someone who's looking for a way to do something similar:

<?php print views_embed_view('VIEW_NAME', 'DISPLAY_NAME', 'ARGUMENTS'); ?>

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.