show nodereferenced nodes in view I have 2 node types: Authors and books. Authors has node reference to book node type. Created view:



Relationships - i have used reference field, in arguments i have used Node: nid (content id from node URL).

In fields i have used my noderef relationship.

in a node.tpl.php:

print views_embed_view('video', 'block_4', $node-&gt;nid);


But it shows nothing. (i have created 1 node author, and 2 nodes book)

Views 2, Drupal 6. What i am doing wrong? Thanks
The function views_embed_view is meant to be used to embed the view in a page or a block during the processing of a page. After the page processing is done, the results are passed to the theme engine. It is not meant to be used in the theming stage.

What you can do is create a region in your template where you want the view to appear, then create your view as a block and place it in that region on the Blocks admin page, following the insructions here;