WordPress.org

Ready to get started?Download WordPress

Forums

custom login form with validation (1 post)

  1. richlondon
    Member
    Posted 12 months ago #

    Hi
    I am wanting to add a custom login form to a page template.
    If the user is not logged in then the form is displayed. If the user is logged in then some other content is shown. I have this bit nailed.
    However the login form is tricky.....
    I have seen on several posts that I should be using the wp_login_form( $args );
    Which is fine, however when I click login without filling anything in.. or don't fill a field in correctly... I am redirected to wp-login, where an error is displayed.
    I want these form validation errors to display on the homepage where the form resides.
    How can I achieve this?

    Any help would be much appreciated.

Reply

You must log in to post.

About this Topic