WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Im using the code as posted on the website below, to create a hard coded login form. http://www.wprecipes.com/add-a-login-form-on-your-wordpress-theme

What would be the best way of incorperating some validation with this or using the default wordpress error messages?

the whole point in hard coding the form is that the user isnt taken away from the content to the default wp-login.php page throughout the login process.

Regards, Tom Kiddle

share|improve this question

Why not just use wp_login_form()? (Codex ref)

share|improve this answer
I could but this will still redirect the user to the default wp-login.php if the password is incorrect, this is exactly what im trying to avoid. Unless you know a way to use that 'wp_login_form()' that i dont? – Tom Kiddle Jul 12 '11 at 7:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.