• Does anyone have any ideas why redirecting might not be working in WordPress 2.0.2?

    I’ve tried both explicitly setting header(‘Location’, ‘https://www.yahoo.com’) for example, and using the wp_redirect function, but neither seem to do anything. I don’t get any errors, but it doesn’t work either.

    My function is called from the init event by the way. There was no problem doing this using the 1.x versions of WP.

Viewing 1 replies (of 1 total)
  • Thread Starter nolongeractive

    (@jrbriggs)

    Erk. Never mind. I think I’ve figured it out. I needed to call “exit” directly after the redirect. For some reason it’s not a problem in WP1.5 but it is in 2.

Viewing 1 replies (of 1 total)
  • The topic ‘redirect problem’ is closed to new replies.