• I have a piece if code in my header, that hides my website from non registered users.

    <?php if(!is_user_logged_in()){header("Location: /wp-login.php");} ?>

    This works great, however, I need to make allowance for the lost password procedure and since it uses the same header, the lost password link redirects to the login. My question is how can I make the lost password procedure visible to guests by calling a different header, that has no menus, but only displays the lost-password procedure?

    Thanks!

  • The topic ‘lost-password not working’ is closed to new replies.