I have a content type that includes two fields: First name (node ββtitle) and Last name (text field) In node.tpl, I want to print the first and last name sequentially.
I use the following code for this, but it prints the first and last name on separate lines. Is it because the last name is wrapped in a div. Is there a way to get the source text of the name field?
<?php print $node->title . render($content['field_last_name']);?>
source share