I have 2 content types: book and author.
This is the structure:
I want to use (print) some fields of author content type inside the node-book-tpl.php
.
How can I do that? Is there a method to print referenced entity's fields like <?php print render($content['field_author']); ?>
etc.?
Note: I tried the Inline Entity Display module but because I want to do this with custom node-book.tpl.php it doesn't work for me.
uid
within the reference field to load the corresponding entity and render whichever field you want. For the image field use theme_imageuid
?