Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to restricted not logged in users only to few pages?


  • borzd
    Participant

    @borzd

    Hello.

    I need to restrict access of not logged in users to few pages:
    Landingpage
    Login
    Password Recocery
    Registration
    Activation

    So basically not logged in users will be redirected to Landingpage, except they are loggining in, registering, activating or recovering password.

    I tried wp_redirect with is_page conditioning in child theme function.php. But I’m very new to php. And even I used codes people say working for them. I wasn’t successfull.

    Could you advise on how to implement such a thing?

    Thanks Ahead!!!

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

  • colabsadmin
    Participant

    @colabsadmin

    I use this plugin for that: https://wordpress.org/plugins/private-community-for-bp-lite/

    “Makes BP pages private and only accessible to logged in users with the exception of the pages you set.”


    borzd
    Participant

    @borzd

    Thanks a lot for your advise!!!

    Will give it a try, I’m running multisite thought, and it is stateв on the plugin page, that it “was not tested on multisite installations”.

    Will try not to forget to post results here and plugins page.


    borzd
    Participant

    @borzd

    Doesn’t work with multisite, or I have something with my redirections….

    Slows down the whole network 🙁

    So still in the search…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to restricted not logged in users only to few pages?’ is closed to new replies.
Skip to toolbar