2

I have a tonne of views across my site and pretty much all of them need to have their arguments passed programmatically.

I'm wondering which method is best assuming I'm using views_embed_view to print all of them.

Thanks.

2

views_embed_view takes arguments as the third parameter. Since you have to use that to print a view on-demand, might as well pass them along there.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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