• I’ve added a private page, and added it to the main menu. Why does the page appear in the menu when I am not logged in? The menu code should not display private page items if the user is not authenticated. This seems pretty basic.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Nope that’s not how it works. Why would you add it to the Menu if its private? If you click on the menu item it does not show the content correct?

    http://codex.wordpress.org/Content_Visibility

    Thread Starter parisology

    (@parisology)

    You would add a private page to the menu to make it quickly available to Editors and Admins. It seems perfectly logical to add it to the menu, but only show the menu item when the user is authenticated and in one of the permitted roles. It seems like in WP I will have to take the extra step of emailing the URL of the private page to the Editors because they won’t find it in the menus.

    I wrote a CMS in .net about 10 years ago, with users and roles. Pages automatically correspond to menu items, and the menu item appears based on the current user’s role, and in a different color (css based) to differentiate them from normal menu items. It is still in use on several sites, but I had to use WP for a new project.

    Give this a look. You can make the menu conditional on User Roles.

    http://themify.me/conditional-menus

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

The topic ‘Why does private page appear in menu?’ is closed to new replies.