Displaying a field of an entitiy reference
If you want to do it only in code, do a node_load($node-&gt;field_related_page['und']['0']['target_id']. If you want a view, use a relationship and show gallery field with the relationship.