title: WordPress login form code
body: <p>I have the following in a WordPress sidebar widget that serves as an online community for my niche. Right now I am able to display the form when the user is not logged in and to display the "Welcome to the Community!" message when the user is logged out -- which is great. However, the login functionality doesn't seem to be working. Could I please get some help?</p>
  
       
  
  <pre><code>&lt;form name="loginform" id="loginform" action="https://domain.org/wp-login.php"        
   method="post"&gt;
      &lt;p class="login-username"&gt;
          &lt;label for="user_login"&gt;Username&lt;/label&gt;
          &lt;input type="text" name="log" id="user_login" class="input" value="" 
                          size="20" /&gt;
          &lt;/p&gt;
      &lt;p class="login-password"&gt;
          &lt;label for="user_pass"&gt;Password&lt;/label&gt;
          &lt;input type="password" name="pwd" id="user_pass" class="input" 
                          value="" size="20" /&gt;
      &lt;/p&gt;
      &lt;p class="login-submit"&gt;
          &lt;input type="submit" name="wp-submit" id="wp-submit" class="button-
                          primary" value="Log In" /&gt;
          &lt;input type="hidden" name="redirect_to" 
                         value="https://domain.org/" /&gt;
          &lt;/p&gt;
  
      &lt;/form&gt;
  &lt;?php } else { ?&gt;
                 &lt;h4&gt;Welcome to the Community!&lt;h4&gt;
    &lt;?php } ?&gt;
  </code></pre>