Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Talk:Function Reference/wp nav menu

Issue found with the 'How to add a parent class for menu item'. I've used the code submitted on the page and found the style class was only added to the first menu instance with a child. After removing the break; the class was added to all menu instances with children.

Kaptek-ag 22:46, 14 March 2012 (UTC)

items_wrap

Added explanation to items_wrap parameter.

Why can't I add the default value in the parameter table? Nothing worked - tt code pre - very frustrating.

Enclosed it in <nowiki> and the corresponding closing tag. Not sure how to show _that_ here! -Kitchin 16:53, 18 January 2013 (UTC)

Resources

Thomas Scholz from toscho.de (on StopPress the WPSE chat) said that one mention of his name was enough - he was uncomfortable that it was repeated. So I took it off the second link.

Also added link to his explanation of fallback_cb http://wordpress.stackexchange.com/questions/64515/fall-back-for-main-menu/64526#64526