Forums

Login / Register using regular Page (3 posts)

  1. roback
    Member
    Posted 1 year ago #

    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?

  2. Agus Suhanto
    Member
    Posted 1 year ago #

    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()

  3. converting2wp
    Member
    Posted 1 year ago #

    Despite the name, the plugin Sidebar Login works fine to put a login form on a page. Just

    1. create a template for the page,
    2. add code to the template to show the form or the content -- probably using is_user_logged_in(), and
    3. use the template tag <?php sidebarlogin(); ?> to generate the form.

Topic Closed

This topic has been closed to new replies.

About this Topic