I am trying to put the WP login and register form on a regular page within my custom template. But i cannot seem to find a plugin or instructions on how to achieve this. I muddled with the wp_login_form () per the codex and had no success.
Can anyone help me with this?
I'm doing the same thing. But my approach is using a plugin to inject the content of the Register and Login form to their corresponding page. What I am doing is recreating the form, and using registration and login API.
So far it works with user registration, I haven't touch the login API yet until now.
For registration form, the following codex functions can be used:
- wp_create_user()
- wp_generate_password()
- wp_new_user_notification()
converting2wp
Member
Posted 1 year ago #
Despite the name, the plugin Sidebar Login works fine to put a login form on a page. Just
-
create a template for the page,
-
add code to the template to show the form or the content -- probably using is_user_logged_in(), and
-
use the template tag
<?php sidebarlogin(); ?> to generate the form.