I have a custom content type, let’s call it ‘parent’. I have another custom content type, let’s call it ‘child’.
I created a template file where I can display the ‘parent’ content type fields any way I want: node--parent.tpl.php
. By using code such as…
<?php print $content['field_city'][0]['#markup']; ?>
I can move fields around and customize the markup, which is great. But how would I also display the parent’s children on the same page?
(I don’t use Views. I create a content type template file instead because gives me more flexibility for arranging the HTML).
Sponsored by SupremePR