I want to build the home page to show just a login box when logged out and the normal home page when logged in.

Alternatively i can also allow redirection to another page when a logged in user clicks home.

I am using WP membership plugin for membership access.


  • Tried playing with a few plugins, like redirect after login, but none actually permanently redirected a logged in user from the home page. My research found that there is no way to do this without actually editing the theme files, but i wanted to keep a child theme as a last resort. – Victor Savio Fernandes Aug 12 '16 at 5:12

You can put this on your in your home page template or in your header.php (if you want to use across your entire site).

if ( !is_user_logged_in() ) {

Details in the Wordpress codex... https://codex.wordpress.org/Function_Reference/auth_redirect

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.