I want to output the views block of collection_products which is filtered by a taxonomy term but it doesn't print anything when I tried the following code:
print views_embed_view('collection_products','block_1','sample-category-1');
attached is the views editing page.
So what might be the problem?
sample-category-1
is the correct parameter? Depending on how you set everything up, it might be expecting a taxonomy id or something else instead? Is the contextual filter configured to hide results if nothing matches, change it to display all data, see what happens then. That allows you to discover what is wrong. – Neograph734 Oct 8 '17 at 15:41