I have a site that is wanting a login for users. But the problem is how do you redirect them to the front page? When they login they go to the dashboard. anyone?
Here is the code..
<form class="ddfm" name='loginform' id='loginform' action='/wp-login.php' method='post'>
<p class="fieldwrap"><label for="log">Username</label><input class="fmtext" type="text" name="log" id="log" value="" tabindex='1' /></p>
<p class="fieldwrap"><label for="pwd">Password</label><input class="fmtext" type='password' name='pwd' id='pwd' value='' tabindex='2' /></p>
<input name='rememberme' type='hidden' id='rememberme' value='false' />
<div class="submit">
<input type='submit' name='submit' id='submit' value='Login »' tabindex='3' />
<?php //use a hidden field to return them to the page they came from ?>
<input type="hidden" name="redirect_to" value="<?php echo $_SERVER["REQUEST_URI"]; ?>
</div>
</form>