Restrict role not working
-
HI,
I was reading through your article and the below was mentioned:
Therefore, if you have no items to display, WordPress will end up displaying ALL your pages!!If you don’t want this, you must set the fallback argument to be a null string.
wp_nav_menu( array( ‘theme_location’ => ‘primary-menu’, ‘fallback_cb’ => ” ) );
I think my menu issue is related, since I dont have soething for the logged out users, the menu seems to blow with all pages visible.
Could you kindly let me know where to set this particular code?
wp_nav_menu( array( ‘theme_location’ => ‘primary-menu’, ‘fallback_cb’ => ” ) );
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Restrict role not working’ is closed to new replies.