In wordpress I am trying to force user login first before see anything. Means I want my user to first login to view any single page, post or archive and only they can se FAQ
There's a plugin you can use for this. Private Only
Easy way
// Require login for site
get_currentuserinfo();
global $user_ID;
if ($user_ID == '') {
header('Location: /wp-login.php'); exit();
}
I think you are missing a parenthesis:
if ( ( is_single() || is_front_page() || is_page() )
&& !is_page('login') && !is_user_logged_in()){
auth_redirect();
}