• Resolved ekesto

    (@ekesto)


    I’m trying to create a hidden page that is only visible to logged-in users – using core functionality only.

    What I did and what is working:

    1. Created a “Subscriber” adding the “read_private_pages” capability
    2. Set the desired page to “Private”
    3. As expected the page is now throwing a 404 when not logged in, and can be accessed via direct URL as a “Subscriber” (and as “Administrator”).

    But:

    I’m using a block theme, and the menu item is not visible, no matter whether I’m logged as a “Subscriber” or as an “Administrator”.

    Is this a “Navigation Block” bug or am I trying to use “Private” pages for something they were not designed for?

    Appreciate any hint on how to achieve this ???

Viewing 3 replies - 1 through 3 (of 3 total)
  • A WordPress private page is a regular, static WordPress page that’s hidden from the public. A visitor who comes to that page accidentally, or with a?direct URL link, doesn’t see any of the content on that private page.

    But then who has access to a WordPress Private page?

    • Those with specific user access?to that page. Namely, Administrators and Editors when using the default private page feature.
    • They must also be logged into the?WordPress dashboard.

    Private Page also not visible in menu.

    I do not know if there is a core functionality to do that but here is a plugin that can: https://www.ads-software.com/plugins/user-menus/

    Thread Starter ekesto

    (@ekesto)

    Thanks for your feedback!

    The User Menu Plugin is not yet Block Theme ready, unfortunately.

    But I managed to find a workaround by using Core “Login/out Block”, combined with the Block Visibility plugin:

    https://www.ads-software.com/plugins/block-visibility/

    Best wishes, gonna mark this as resolved!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘“Private” page not visible to user role with “read_private_pages” added’ is closed to new replies.