WP redirect to custom login page if a user is not logged in
You are establishing a redirect for all requests for a visitor, including /account: Request to /, user is not logged in – redirect to /account. Request to /account, user is not logged in – redirect to /account. Request to /account, user is not logged in – redirect to /account. (etc.) To break the loop, perform … Read more