WordPress登录问题


wordpress login issue

我创建了一个自定义弹出登录框。 并使用这样的表单设置

<form action="<?php bloginfo('url'); ?>/wp-login.php?redirect_to=<?php echo urlencode($_SERVER['REQUEST_URI']); ?>" method="post" autocomplete="off">

我使用这样的输入字段

<input id="login_username" name="user_name" type="text" value="" class="pop-input surfix" /><span id="placeholder_user_login">Username</span>
<input id="login_password" name="user_password" type="password" value="" class="pop-input" /><span id="placeholder_user_pass">Password</span>
<input id="register" type="submit" value="Login" class="popup-login-btn" />

但它重定向到 WP-login.php除了它应该处理登录并重定向到从用户开始登录的页面。

请指导我如何解决此问题。

谢谢大家

实际上问题出在输入字段的名称元素上。

当我检查wp-login.php页面时,我发现wordpress更改了输入字段的名称。

<input id="login_username" name="user_name"
<input id="login_password" name="user_password"

<input id="login_username" name="log"
<input id="login_password" name="pass"

所以我只是简单地替换了名字,所有问题都解决了。

谢谢大家