The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS WordPress sidebar custom menu Re: WordPress sidebar custom menu


I don’t think that’s the best way of doing it. WP comes with a built in widget for showing custom menus, why not use that instead? Putting the PHP code in the sidebar.php like that isn’t very flexible.

Create a new menu in Appearance > Menus and then add the Custom Menu widget to your sidebar and select your new menu to show.