WordPress.org

Ready to get started?Download WordPress

Forums

How to hide the main page from logged in users? (2 posts)

  1. StartaFlame
    Member
    Posted 1 year ago #

    Hello,

    How can I hide the main page from users who have already logged in? The Main page in my site serves only to provide users with a way to sign up and login page.

    Also, I am redirecting them to another page already, I just don't want the main page to show for logged in users at all.

    Thanks!

  2. Andrew Bartel
    Member
    Posted 1 year ago #

    Put a is_user_logged_in() check in your header file and redirect using wp_redirect().

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags