title: Drupal 7: How do I add custom field info to my page?
body: <p>I have a Drupal 7 question. What's the best way to display my values for custom fields onto a page?</p>
  
  <p>I know there's the Manage Display, which is great for sorting information, but I'd like to add lots of styling to these values, place them all over the page in different places, and also use some of them multiple times. Sometimes I'd even like to use values inside other values (like adding field1 and field2 and displaying the sum, or making a field clickable to go to a URL designated in another field).</p>
  
  <p>I've looked at things like Display Suite, but that's more for the whole page. I only need to adjust what shows up in the main content area. It also doesn't seem to do what I need to do.</p>
  
  <p>My themes I've used seem to add variables inside the page code (the .tpl files) and display information that way.</p>
  
  <p>What I've been doing is using some of the included variables (like print $date; and print $time;) and have been calling them directly using PHP and the complex array system revealed by devel.</p>
  
  <p>For example, if I want to show body content, I do this:</p>
  
  <pre><code>$myContent .= "Body: ".$content['body']['#items'][0]['value'];
  </code></pre>
  
  <p>It works, but I have a feeling there's a better way. If so, what? I haven't yet found it, since I'm looking for something which gives me the most control over how I display the variables for each node type.</p>
  
  <p>Thanks!</p>