0

I'm trying to create a dual login/register page with WordPress and so far I found out I can create my custom template and then output the login form with wp_login_form, however I cannot find any reference to being able to do something similar with the registration form.

I have looked at several articles and none mention anything like that either and many of them just resort to plugins.

Is there a way to achieve this or do I have to go the alternate route of customising the existing registration page and seeing if I can output the login form on that!?

0

You can use the Theme My Login plugin where there is an option to have a custom registration page on the website.

Theme my login just made a big update. I find that version 6 is better than 7.

  • Thanks - but I'm trying to find ways to do it without a plugin if possible. – Brett Dec 10 '18 at 20:34
  • A work around would be to embed it on a page in an <iframe> tag – lotto_guy Dec 10 '18 at 21:22
0

The registration form is generated by code directly in wp-login.php (https://core.trac.wordpress.org/browser/branches/5.0/src/wp-login.php#L786) and this code is not wrapped with any function, so... I'm afraid there is no such function ready to use.

Of course you can mimic the code from the file above and wrap it with your own function...

  • That's pretty annoying. I did think of mimicking the code, but obviously that isn't a very future compatible way of doing things. – Brett Dec 10 '18 at 21:07
  • @Brett yes, it is a little bit. On the other hand - that form did not change for few years, so... that’s not as risky as you can think, I guess... – Krzysiek Dróżdż Dec 10 '18 at 21:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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