<nav class="container menu toolbar flex-that fg-light">
<h2 class="sr-only">Menu des pages</h2>
<ul>
<li>
<a href="<?php echo site_url(); ?>" class="btn btn-navbar">
<i class="fa fa-home" aria-hidden="true"></i><span class="sr-only">Accueil</span>
</a>
</li>
<?php
$listmenu = get_nav_menu_locations();
$menu = wp_get_nav_menu_items($listmenu['top-navbar']);
foreach ($menu as $menuElement) {
echo '<li><a href="' . $menuElement->url . '" class="btn btn-navbar">'. $menuElement->title . '</a></li>';
}
?>
</ul>
<ul class="f-end">
$menu = wp_get_nav_menu_items($listmenu['top-navbar-2']);
<a class="menu-item submenu" href="#">Mes sites <i class="fa fa-caret-down" aria-hidden="true"></i></a>
<ul class="bg-light menu fg-dark">
$menu = wp_get_nav_menu_items($listmenu['link-menu']);
<li><a href="<?php bloginfo('rss2_url'); ?>" class="btn btn-navbar"><i class="fa fa-rss" aria-hidden="true"></i><span class="sr-only">Flux RSS du site</span></a></li>
</nav>