491 posts
  • Bought between 10 and 49 items
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 1 and 9 users
  • United Kingdom
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?

1454 posts
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
  • Croatia
OriginalEXE says
Try with this code:
wp_redirect( get_template_directory_uri() . '/quiz-healthandsafety-getresults.php' );
exit;
by
by
by
by
by
by