• dputer

    (@dputer)


    Hey, I’m trying to limit the viewing of pages only to login users in a theme I’m writing. If I add “auth_redirect()” to header.php, the site gets stuck in wp-login.php. Is there a way to test if I’m in the login page, so to prevent calling “auth_redirect()” in that case?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Only allowing logged in users to view pages’ is closed to new replies.