Dynamic Menu


#1

I want to have a menu item (at top level) be dynamic. For example, “Login” to switch between “Login” or “Logout” depending on variables set. Can I do this from the WordPress interface, or do I need to get into the code?


#2

Hello there,

Thank you for asking.

You should get into the code to register your new menu location and wrap your wp_nav_menu using is_user_logged_in() conditional tag. To set the menu items, go to Dashboard > Appearance > Menus

I hope this reply helps.