• I have two separate menus – one for logged out users and one for logged in users. I have set the main menu to be for logged out. The issue is that all my pages are now showing in the menu. It doesn’t matter whether I am logged in or out. They all remain. Any help would be great. Thanks.

    https://wordpress.org/plugins/nav-menu-roles/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Artisync

    (@artisync)

    Never mind. Missed it in the FAQ the first time I read it. Sorry.

    Thread Starter Artisync

    (@artisync)

    Sorry. I have to take it back. My fallback is set to null and I am still seeing all the pages.

    My code: $primaryNav = wp_nav_menu( array( ‘theme_location’ => ‘primary-menu’, ‘container’ => ”, ‘fallback_cb’ => ”, ‘menu_class’ => $menuClass, ‘echo’ => false ) );

    Any other suggestions?

    Thread Starter Artisync

    (@artisync)

    I have it working where only logged in users are seeing all the pages. Not sure why. The menu items are all set to the proper setting and roles.

    Plugin Author HelgaTheViking

    (@helgatheviking)

    NMR isn’t designed to toggle between two whole menus. For that it’d be better to wrap your wp_nav_menu() calls in a conditional if/else.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘All Pages Showing’ is closed to new replies.