I'm building an application for a client that is accessed via an email address and a project number - a custom field.
I created a really simple form from scratch (i.e. not using
wp_login_form), and I validate the posted values with
My problem is that when the form values are incorrect, or blank, the user is being automatically redirected to the wp-login.php page.
How can I override this behavior and keep the user on the custom log-in page template?
<form action="<?php the_permalink(); ?>" method="post"> <label for="form_email">Email Address:</label> <input id="form_email" type="text" name="email" value="" /> </label> <label for="form_project">Project Number:</label> <input id="form_project" type="text" name="project" value="" /> </label> <input type="submit" name="submit" value="Submit" /> </form>