I've inherited a real mess of a site that was built using Wordpress and aMember. So far I've been able to make things work with the new design I've implemented. However, one of the last things I need to is get the login form working with amember, so that users don't have to re-log-in just to go to their account page (which they would have to do it I had them just logging into Wordpress). The problem is, if I use a Wordpress login form and values, it redirects fine to the page I've set up in Wordpress. If I try to use Amember's login.php and values, Amember keeps redirecting users to an old product page, rather than the new landing page that has been set to ALL products. After hours and hours of looking for a hidden setting that has been "caching" the old product URL, I can't find anything at all, either in WP or in AM. So I tried the amember_redirect_url suggestion that people mention here, to make the form redirect. The problem is, this value is completely ignored, my users are not redirected, and they are sent directly to the old landing page on login. This is very frustrating!!!! Here's the login form I'm using on my site: Code: <div id="login"> <?php global $user_ID, $user_identity; get_currentuserinfo(); if ( !$user_ID ):?> <form name="login" id="loginform" action="<?php bloginfo('url');?>/amember/login.php" method="post"> <div class="whitetext" id="formlabel">Login</div> <div> <input type="text" name="amember_login" id="wp_login" class="input" value="username" size="20" tabindex="10" /> <input type="password" name="amember_pass" id="wp_pass" class="input" value="password" size="20" tabindex="20" /> <input type="hidden" name="amember_redirect_url" value="/members-pages/strategic-analysis/" /> <input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="GO" tabindex="100" /> </div> </form> <a id="signup_button" href="http://thetradecoach.com/amember/signup.php">Sign Up Now!</a> <?php else:?> <p class="loggedin"><span class="whitetext"><!-- <a class="whitetext" href="<?php bloginfo('url');?>/amember/profile.php">My Account</a> |--> <a class="whitetext" href="/contact/">Contact</a> | <a class="whitetext" href="<?php bloginfo('url');?>/amember/logout.php">Logout</a></span></p> <?php endif;?> </div> Help me, Obi-wan...you're my only hope!
I finally found the problem...the previous developer, for some reason, had hard-coded redirect links into login.php. So even if amember_redirect_url was set, it would use those links instead. Seriously, hours of my life I'll never get back because of some bonehead.