0

For whatever reason, this login form isn't working. Like it isn't actually logging me into anything. It just takes me to a login page, but says I don't have access to it.

<?php
        $args = array(
    'echo'           => true,
    'remember'       => true,
    'redirect'       => site_url( '/ ' ),
    '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);?>

Any ideas??

0

I got it. Had a space after / in the redirect.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.