Registering and displaying custom menu in WordPress

add to your function.php file the following code :

then in a template file in a place where the menu need to be displayed :