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)
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