Does the job :) And still works !
-
It works exactly as I need ??
Easy integration. Now my customer can create a custom menu for pages and select it directly (and dynamicaly) in the pages he needs ??Just for those who could need it, here is the code for the menu (returning an object in my case) :
$menu=’footer’;
if(get_field(‘menu_footer’)){
$menu=get_field(‘menu_footer’)->slug;
}
echo wp_nav_menu([“menu” => $menu]);
- The topic ‘Does the job :) And still works !’ is closed to new replies.