Reputation
Top tag
Next privilege 50 Rep.
Comment everywhere
Badges
1 5
Impact
~10k people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
Oct
21
comment Dynamically exclude menu items from wp_nav_menu
Thanks! That might work. I'll give it a try and let you know.
Oct
21
comment Dynamically exclude menu items from wp_nav_menu
I thought of passing an exclude argument too, but, contrary to wp_list_pages and many other WP functions, wp_nav_menu does not include one. So even if I do specify one when calling the menu or in the walker, it wouldn't get picked up inside wp_nav_menu, would it?
Oct
21
revised Dynamically exclude menu items from wp_nav_menu
added 1 characters in body
Oct
21
comment Dynamically exclude menu items from wp_nav_menu
Hi Souleseekah, I just added it to my original post. Thanks!
Oct
21
revised Dynamically exclude menu items from wp_nav_menu
cleaner code
Oct
21
revised Dynamically exclude menu items from wp_nav_menu
added 48 characters in body
Oct
21
awarded  Editor
Oct
21
revised Dynamically exclude menu items from wp_nav_menu
added 336 characters in body
Oct
21
asked Dynamically exclude menu items from wp_nav_menu