574 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+3 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?

1476 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+3 more
OriginalEXE says
Try with this code:
wp_redirect( get_template_directory_uri() . '/quiz-healthandsafety-getresults.php' );
exit;
by
by
by
by
by
by