trying to add a footer menu to my footer in WordPress, The menu is saved inside the database and I’m copying the same code from the header which is working perfectly. I can’t see the error:
code is:
<?php
if ( has_nav_menu( 'footer_nav' ) ) {
wp_nav_menu( array('container' => '<ul>', 'menu' => 'Footer Menu', 'items_wrap' => '<li>%1$s</li>' ));
}
?>
any help would be great
You have to give the
theme_location
forfooter_nav
,