How to include a custom menu in page.tpl I want to code a custom menu straight into page.tpl.php. The default theme uses

&lt;?php if ($main_menu): ?&gt;
  &lt;div id="main-menu" class="navigation"&gt;
    &lt;?php print theme('links__system_main_menu', array(
      'links' =&gt; $main_menu,
      'attributes' =&gt; array(
        'id' =&gt; 'main-menu-links',
        'class' =&gt; array('links', 'clearfix'),
      ),
      'heading' =&gt; array(
        'text' =&gt; t('Main menu'),
        'level' =&gt; 'h2',
        'class' =&gt; array('element-invisible'),
      ),
    )); ?&gt;
  &lt;/div&gt; &lt;!-- /#main-menu --&gt;
&lt;?php endif; ?&gt;


In Drupal 7 I've created a new menu called 'Footer menu'. How do I code that into my theme in the same way as the $main_menu is coded  in the default theme?
Try this   

&lt;?php
 $menu = menu_navigation_links('menu-your-custom-menu-name');
 print theme('links__menu_your_custom_menu_name', array('links' =&gt; $menu));
?&gt;


You can also add to template.php

function THEME_preprocess_page(&amp;$vars) {

$menu = menu_navigation_links('menu-your-custom-menu-name');

$vars['custom_menu'] = theme('links__menu_your_custom_menu_name', array('links' =&gt; $menu));

}


the variable $custom_menu is available in the page tpl