2.4k questions

2.4k answers

98.0k users

4 Online Users
0 Member 4 Guest
Today Visits : 108
Yesterday Visits : 2083
Total Visits : 2426188



Dear All, These are my answers from Quora and primarily Google; please check the answer and from others sites; the answers are free and without any liability.To make a decision, write down all of the positives and negatives on a piece of paper.Thank you,

Elias Katsaniotis, MSc


Viktoria Katsanioti,




0 votes

How do I create a WordPress login page without a plugin?

in WordPress by (95.8k points)

1 Answer

0 votes

The best way to create a login page in WordPress without using a plugin to the site is to create a custom page with the custom template and use WP_login_form() function to publish the plugin form on the page

<form action="<?php the_permalink(); ?>" method="post" class="sign-in">
        <label for="user-name"><?php _e('Username'); ?></label><br />
        <input type="text" name="user-name" id="user-name" value="<?php echo wp_specialchars( $_POST['user-name'], 1 ); ?>" />
        <label for="password"><?php _e('Password'); ?></label><br />
        <input type="password" name="password" id="password" />
        <input type="submit" name="submit" value="<?php _e('Log in'); ?>" id = "yellow-button" />
        <input type="hidden" name="action" value="log-in" />
see https://wphow.co/kb/how-to-add-a-login-page-in-wordpress/
by (95.8k points)