I search my question but all users that said paste custom code in functions.php
I have two Page Templates for login with this code:
<?php
$args = array(
'echo' => true,
'remember' => true,
'redirect' => 'mysite.com',
'form_id' => 'loginform',
'id_username' => 'user_login',
'id_password' => 'user_pass',
'id_remember' => 'rememberme',
'id_submit' => 'wp-submit',
'label_username' => __( 'Username' ),
'label_password' => __( 'Password' ),
'label_remember' => __( 'Remember Me' ),
'label_log_in' => __( 'Log In' ),
'value_username' => '',
'value_remember' => false
);
wp_login_form( $args ); ?>
but when users click on button redirect to /wp-admin.
I need two login page with two different redirect
wp_login_form
it says that the redirect url must be absolute meaninghttp://example.org
home_url()
instead ofsite_url()