User Registration

  1. Home
  2. Docs
  3. User Registration
  4. Registration Form and Login Form
  5. How to show login form?

How to show login form?

 

You can add this short code [user_registration_login] in the pages where you want to show your login form.

Also, redirect_url parameter allows you to redirect to certain page if the user is logged in. E.g. [user_registration_login redirect_url="my-account"] will redirect to my-account page if logged in.

This will show you the login form if you are not logged in already.

 

Also, by default, My Account page is created after activating the plugin which will show you a login form if not logged in.

 

My Account page created
My Account page created

 

That My Account page shows login form automatically on Frontend if the user is not logged in.

You can show and check your login form by adding My Account page from Appearance > Menus.

 

Adding My Account page to menus
Adding My Account page to menus

Then, you can go to the front end and click on My Account link on Menu you’ve created.
Make sure you’re logged out to view and check login form.

 

Viewing login form on frontend
Viewing login form on frontend

 

Or, if you want to create your own my account page, you can create a new page and add this shortcode: [user_registration_my_account] inside WordPress Visual Editor.

 

Creating new My Account page and adding shortcode
Creating new My Account page and adding shortcode

And you can test your newly created login page as instructed above.

Was this article helpful to you? Yes 9 No 3

How can we help?