title: Add Custom error message for wrong user name password using wp_login_form in wordpress
body: <p>I am using <code>wp_login_form()</code> function to create a login form. The problem is that if I enter wrong username/password or leave the fields empty, it redirects to the default Wordpress login page.</p>
  
  <p>I want to display error messages at my template page. How can I do this?</p>
  
  <p>Thanks in advance.</p>
  
  <pre><code>&lt;?php $args = array(
      'echo' =&gt; true,
  'redirect' =&gt; site_url(),
      'form_id' =&gt; 'loginform',
      'label_username' =&gt; __( 'Username:' ),
      'label_password' =&gt; __( 'Password:' ),
      'label_remember' =&gt; __( 'Remember Me' ),
      'label_log_in' =&gt; __('Login'),
      'id_username' =&gt; 'user_login',
      'id_password' =&gt; 'user_pass',
      'id_remember' =&gt; 'rememberme',
      'id_submit' =&gt; 'wp-submit',
      'remember' =&gt; true,
      'value_username' =&gt; NULL,
      'value_remember' =&gt; false ); ?&gt;
  &lt;?php  wp_login_form($args); ?&gt;
  </code></pre>