1096 posts
  • 5 Years of Membership
  • Affiliate Level 1
  • Beta Tester
  • Collector Level 2
+5 more
Gareth_Gillman
says

Trying to do a script redirect using WP redirect and for some reason I cannot get it to work it just reloads to the homepage).

My code is:

wp_redirect(get_bloginfo('template_directory').'/quiz-healthandsafety-getresults.php');

Any ideas?

1565 posts
  • Affiliate Level 1
  • Author Level 5
  • Collector Level 2
  • Featured Author
+2 more
OriginalEXE
says
Try with this code:
wp_redirect( get_template_directory_uri() . '/quiz-healthandsafety-getresults.php' );
exit;
by
by
by
by
by
by