Drupal's main-menu not displaying I've started my first custom theme and I pulled the main-menu print statement from the default page.tpl but it didn't display. Curiously, if I create a region and add the main menu to that region via the blocks administration it will show up. Why won't this show when hard-coded?

&lt;?php if ($main_menu || $secondary_menu): ?&gt;
  &lt;div id="navigation"&gt;&lt;div class="section"&gt;
    &lt;?php print theme('links__system_main_menu', array('links' =&gt; $main_menu, 'attributes' =&gt; array('id' =&gt; 'main-menu', 'class' =&gt; array('links', 'inline', 'clearfix')), 'heading' =&gt; t('Main menu'))); ?&gt;
    &lt;?php print theme('links__system_secondary_menu', array('links' =&gt; $secondary_menu, 'attributes' =&gt; array('id' =&gt; 'secondary-menu', 'class' =&gt; array('links', 'inline', 'clearfix')), 'heading' =&gt; t('Secondary menu'))); ?&gt;
  &lt;/div&gt;&lt;/div&gt; &lt;!-- /.section, /#navigation --&gt;
&lt;?php endif; ?&gt;


If I switch the theme over to Bartik, that uses the exact same print statement, the menu seems to work fine.
I spent countless hours figuring it out as well; the solution was so dumb simple !

Edit your theme's ".info" file and add : 

features[] = main_menu
features[] = secondary_menu


Otherwise main_menu and secondary_menu doesn't display at all.

Hope that helps.