Timeline for wp_nav_menu: show menu only if one exists, otherwise show nothing
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 6, 2018 at 14:46 | comment | added | Alireza | It seems that it is not true. The docs says: If not given a theme_location parameter, the function displays developer.wordpress.org/reference/functions/wp_nav_menu/… the menu matching the ID, slug, or name given by the menu parameter; otherwise, the first non-empty menu; otherwise (or if the menu given by menu is empty), output of the function given by the fallback_cb parameter (wp_page_menu(), by default); otherwise nothing. | |
Oct 10, 2013 at 14:34 | comment | added | Hooman Askari | I know, I just wanted to point you out to the main article on wordpress codex. | |
Oct 6, 2013 at 13:02 | comment | added | brasofilo | This is the same as chrisguitarguy answer... | |
Oct 6, 2013 at 11:37 | review | Late answers | |||
Oct 6, 2013 at 13:02 | |||||
Oct 6, 2013 at 11:20 | history | answered | Hooman Askari | CC BY-SA 3.0 |