Support » Plugin: Advanced Custom Fields: Nav Menu Field » Does the job :) And still works !

  • pitichampi

    (@pitichampi)


    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]);

  • You must be logged in to reply to this review.