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

I have a wordpress site. Which has the built-in login form with the url http://domain/wp-login.php and register page http://domain/wp-login.php?action=register.

As these pages have no sidebar and headers, therefore I want to display these forms on a page which I have created from the backend.

Is it possible and how will I do this?

share|improve this question

migrated from stackoverflow.com Jan 12 '12 at 14:27

This question came from our site for professional and enthusiast programmers.

up vote 3 down vote accepted

There are a couple of ways to do this. The most simple is probably to install a plugin, such as Theme My Login. The more complicated but flexible way to do it is to use wp_login_form() to output the form, presumably to a shortcode or something, and then you can style it yourself.

share|improve this answer
I used the wp_login_form, but when I entered incorrect username and password, it then redirects me to that original login page, which I does not want. – Ahmad Jan 12 '12 at 15:24
Where did you set the redirect parameter to go to? – mor7ifer Jan 12 '12 at 15:39
I have used the Theme My Lgoin plugin to display the login and register forms on a page and then style it. Thanks for the answer. – Ahmad Jan 13 '12 at 6:10

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.