Skip to main content
2 of 2
use render function
NTT
  • 1.4k
  • 10
  • 22

You are using print when assigning into a variable, that's you are getting error.

remove print from line 2 and the code should be as below

<?php 
$node_author = user_load($node->uid); 
print render($node_author->field_custom); 
?>
NTT
  • 1.4k
  • 10
  • 22