WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Redirect login failure to another page

[Resolved] Redirect login failure to another page

Viewing 3 replies - 1 through 3 (of 3 total)
  • To clarify, here is my sidebar login code:

    <form action="<?php bloginfo('url') ?>/wp-login.php" method="post">
    
    <div id="reg_or_login">
    	<a href="<?php bloginfo('url') ?>/register">Register</a> or Log in:
    </div>
    
    <div id="user_prompt">
    	Username: <label for="log"><input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="13" /> </label>
    </div>
    
    <div id="pwd_prompt">
    	Password: <label for="pwd"><input type="password" name="pwd" id="pwd" size="13" /> </label>
    
    	<input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/>
    </div>
    
    <div style="display: inline;" class="buttons">
    	<button type="submit" style="font-size: 1em; display: inline; float: none;" class="">
    		<img src="<?php bloginfo('stylesheet_directory'); ?>/images/icons/group_key.png" alt=""/>
    Login
    	</button>
    </div>
    
    <div id="lost_pwd">
    	<a href="<?php bloginfo('url') ?>/lost-password">Lost Password?</a>
    </div>
    
    <div class="breakfree"></div>
    </form>

    Here are the templates I’m using for login/register/lost password:

    http://www.mharis.net/2008/01/18/wordpress-login-and-registration-templates/

    I have the same question.
    Since my site http://www.swed.info/wp_cast is “members only”, people without registration can not break the circle and keep going back to the site adress and therefor automatically to the login form again.
    Is there any form to change the home or site adress to a contact page or other within or ouside the blog?
    Regards
    Erico

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Redirect login failure to another page’ is closed to new replies.
Skip to toolbar