I am building a custom user profile theme and am looking for some help with php. I understand a fair amount, but am still a nube. In both cases below, the code breaks to the next line.
Issue #1
I want to have a custom label/header for one of the fields, "About [field_first_name]'s Job" e.g. "About Mike's Job". Similarly, I would like to have a label/header, "About [field_first_name]" e.g. "About Mike".
Here is the code to print the first name
<?php print render($user_profile['field_first_name']); ?>
This is the php I use on the page.
<div class="cells" style="width:600px;">
<h2>About <?php print render($user_profile['field_first_name']); ?>'s Job</h2>
<?php print render($user_profile['field_job_description']); ?><br />
<h2><?php echo "About ";?><?php print render($user_profile['field_first_name']); ?></h2>
<?php print render($user_profile['field_about_me']); ?><br />
</div>
Issue #2
I need to concatenate 2 fields into one line. Currently the php is rendered on a new line, as if a
was between the two fields. In this case I want the print render($user_profile['field_user_university']);
and print render($user_profile['field_user_grad_year']);
to appear on the same line.