We have to create multiple navigation menus. Follow these steps to create menus before loading them conditionally inside the theme:
- Log in to the WordPress Dashboard as an administrator.
- Click the Appearance menu.
- Click the Menus option.
- Click the create a new menu link.
- Add a unique name to the menu. In this case, we're using WPCookbookMenu1.
- Click the Create Menu button.
- Add items to the menu from Posts, Pages, Custom Links, and Categories by selecting them and clicking the Add to Menu button, as shown in the following screenshot:
- Click the Save Menu button to save the menu.
- Follow the same process from steps 4 to 7 and ...