Support » Fixing WordPress » Creating a Login “Widget”

Viewing 6 replies - 1 through 6 (of 6 total)
  • I was hoping there is a simple procedure, maybe make the form and submit it to a function. I am hoping to learn the procedure for use with my themes instead of relying on other plugins.

    Ah. Well, no, there’s nothing in WordPress specifically to generate the form for you. Basically though, if you make the form have the same fields as the form on the normal login page, then it will work. You can also add a hidden redirect field to redirect where you want to go to for the after-login page.

    Look at the form created by that plugin, then just copy the HTML form itself.

    Right, I would create the form. Ideally, my own code would show the form, then upon submission via Ajax (or page refresh), it would log the user in.

    I wanted to leave the code hijacking to a last resort but it might have to do.

    Is there anything you can tell me about the wp function wp_signon?

    .. I’m really not following you here. You don’t need to know that function in order to log in. You don’t need to know any functions, in fact. Just submit the form with the proper parameters to the wp-login.php script and it logs you in. Done.

    Ah I see. I couldn’t find any documentation on anything like this.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Creating a Login “Widget”’ is closed to new replies.