Get raw URL from field link I have set up a node--home_page.tpl.php template with the following:
    

  &lt;a href="&lt;?php print render($content['field_primary_section_link']); ?&gt;"&gt;
    &lt;div id="primarySection"&gt;
       &lt;?php print render($content['field_primary_section_image']); ?&gt;
       &lt;h1&gt;&lt;?php print render($content['field_primary_section_title']); ?&gt;&lt;/h1&gt;
        &lt;?php print render($content['field_primary_section_body']); ?&gt;

    &lt;/div&gt;
  &lt;/a&gt;
  &lt;!-- END Primary Section --&gt;


I want the anchor tag to contain the raw URL from the field_primary_section_link but it is pulling in everything around it. I just want the plain URL but am unsure how to do. Any help would be appreciated.
You can dump $content['field_primary_section_link'] using var_dump() or if you have devel module installed in your project you can use dpm() and you'll see a bunch of arrays there and check the raw url that you need.