title: wp custom login page - redirect not working
body: <p>Hoping someone can help me out with this, I've been looking around for a few days to no avail. I've set up a custom login page for a website's users, but can't seem to redirect to the home page instead of the admin page when a user logs in.</p>
  
  <p>Here's my function:</p>
  
  <pre><code>&lt;?php if ( ! is_user_logged_in() ) { // Display WordPress login form:
      $args = array(
          'redirect' =&gt; home_url(), 
          'form_id' =&gt; 'loginform-custom',
          'label_username' =&gt; __( 'what is your name?' ),
          'label_password' =&gt; __( 'what is your password?' ),
          'label_remember' =&gt; __(''),
          'label_log_in' =&gt; __( 'Log In' ),
          'remember' =&gt; true
      );
  wp_login_form( $args );
  
  } else { // If logged in:
      $args = array(
          'redirect' =&gt; home_url(), 
          'form_id' =&gt; 'loginform-custom',
          'label_username' =&gt; __( 'what is your name?' ),
          'label_password' =&gt; __( 'what is your password?' ),
          'label_remember' =&gt; __(''),
          'label_log_in' =&gt; __( 'Log In' ),
          'remember' =&gt; true
      );
  wp_login_form( $args );
  } ?&gt;
  </code></pre>
  
  <p>Any help is greatly appreciated!
  cheers,</p>