Nothing displaying for Drupal main menu

Posted by jonathandey on Stack Overflow See other posts from Stack Overflow or by jonathandey
Published on 2012-10-30T10:59:07Z Indexed on 2012/10/30 11:00 UTC
Read the original article Hit count: 194

Filed under:
|

I'm trying to output the main_menu in to a custom theme on the page.tpl.php template however nothing is displaying when I add <?php print theme("links", $main_menu) ?>

However when I do a var_dump on the $main_menu I get

array(2) { ["menu-218"]=> array(2) { ["href"]=> string(7) "" ["title"]=> string(4) "Home" } ["menu-335"]=> array(2) { ["href"]=> string(6) "node/1" ["title"]=> string(4) "Home" } }

What might I be doing wrong? I'm new to Drupal so be kind please :D

© Stack Overflow or respective owner

Related posts about drupal

Related posts about drupal-theming