Here is my situation,
I have a view-1 which will list the node titles based on Content: Taxonomy term CONTEXTUAL FILTERS
View-2 which will list all the taxonomy terms (of a vocabulary) with node count.
Now how do I print the view-1 as a custom field within view-2.
The reason I am trying to do this is, I am trying to construct a UI which will display the nodes on click on taxonomy terms with count.
I tried using below code to print view-1 as a custom PHP field on view-2, but it did not work for me.
print views_embed_view('view-1','block_1', $row->tid);
$row->tid is the term ID argument I am trying to pass