Metatags not showing despite calling render in template My custom page.tpl.php is not outputting metatags. I've tried all of these:

 render($page['content'])
 print render($page['content'])
 render($page['content']['metatags'])
 print render($page['content']['metatags'])


I know that the metatags module is passing in the metatag info, because doing this

watchdog('foo', print_r($page['content']['metatags'], true));


results in an array like this:

 Array (
  [node:feed] =&gt; Array (
    [abstract] =&gt; Array (
      [#attached] =&gt; Array (
        [drupal_add_html_head] =&gt; Array (
          [0] =&gt; Array (
            [0] =&gt; Array (
             [#theme] =&gt; metatag
             [#tag] =&gt; meta
             [#id] =&gt; metatag_abstract
             [#name] =&gt; abstract
             [#value] =&gt; This is an abstract
            )
            [1] =&gt; metatag_abstract
          )
        )
      )
    )
    [keywords] =&gt; Array (
    [#attached] =&gt; Array (
    [drupal_add_html_head] =&gt; Array (
    [0] =&gt; Array (
      [0] =&gt; Array (
        [#theme] =&gt; metatag
        [#tag] =&gt; meta
        [#id] =&gt; metatag_keywords
        [#name] =&gt; keywords
        [#value] =&gt; keyword1 keyword2
      )
      [1] =&gt; metatag_keywords
    )
  )
 )

 ... etc ...


What might be stopping it from rendering the metatags on the page?

I've also noticed that the metatags element in the default devel tab is an empty array, BUT in the tokens tab within devel, the node:metatag tokens are all present and correct.

Further investigation shows that drupal_add_html_head() is being called and the metatag information is being passed in.
Turned out someone had overridden html.tpl.php and had removed the reference to $head. Adding echo $head between &lt;head&gt; and &lt;/head&gt; in html.tpl.php fixed the problem.