{"id":797,"date":"2026-10-20T09:05:16","date_gmt":"2026-10-20T08:05:16","guid":{"rendered":"https:\/\/userswp.io\/documentation\/article\/userswp-registration-login-faq\/"},"modified":"2026-10-20T09:05:16","modified_gmt":"2026-10-20T08:05:16","slug":"userswp-registration-login-faq","status":"publish","type":"gd_place","link":"https:\/\/userswp.io\/documentation\/article\/how-tos\/userswp-registration-login-faq\/","title":{"rendered":"UsersWP registration and login FAQ"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Answers to common UsersWP questions about registration and login. Click a question to open the answer.<\/p>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-accordion accordion mb-3\">\n<div class=\"accordion-item\" id=\"heading-login-links-must-login-to-post\"><h2 class=\"accordion-header\"><button class=\"accordion-button\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-login-links-must-login-to-post\" aria-expanded=\"true\" aria-controls=\"collapse-login-links-must-login-to-post\">How do I add login and register links to the &quot;You must login to post&quot; message?<\/button><\/h2><div class=\"accordion-collapse collapse show\" id=\"collapse-login-links-must-login-to-post\" aria-labelledby=\"heading-login-links-must-login-to-post\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">That message comes from the GeoDirectory Add Listing form. Edit the page set as your Add Listing page and add <code>show_login=&quot;1&quot;<\/code> to the shortcode, for example <code>&#091;&lt;span&gt;&lt;\/span&gt;gd_add_listing show_login=&quot;1&quot;&#093;<\/code>. Login and Register buttons then appear under the message.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can change the message text too: <code>&#091;&lt;span&gt;&lt;\/span&gt;gd_add_listing show_login=&quot;1&quot; login_msg=&quot;Please log in to add your listing.&quot;&#093;<\/code>. If you use the GD &gt; Add Listing block, the same options are in its settings.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A few things to know:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>With UsersWP active, the links go to your UsersWP login and register pages, and they open in the lightbox if the UsersWP lightbox is enabled.<\/li>\n\n\n\n<li>The Register button only shows when &#8220;Anyone can register&#8221; is ticked in Settings &gt; General.<\/li>\n\n\n\n<li>If you&#8217;d rather let visitors post without an account, GeoDirectory has an &#8220;Allow posting without logging in?&#8221; option in GeoDirectory &gt; Settings &gt; General (advanced settings).<\/li>\n<\/ul>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-country-field-register-form\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-country-field-register-form\" aria-expanded=\"false\" aria-controls=\"collapse-country-field-register-form\">Why is the Country field blank or missing on the register form?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-country-field-register-form\" aria-labelledby=\"heading-country-field-register-form\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">UsersWP&#8217;s Country field starts as a plain text box, and a small script (countrySelect) turns it into a country picker with flags. If the field shows up empty, that script did not run on the page. Open your browser console on the register page: an error like <code>countrySelect is not a function<\/code> confirms it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The usual cause is a caching or optimization plugin that combines, defers or delays JavaScript. Exclude <code>wp-content\/plugins\/userswp\/assets\/js\/countrySelect.min.js<\/code> from those options, clear the cache and test again in a private window.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the field is not there at all, check that it is part of the register form. In UsersWP &gt; Form Builder &gt; Account, open the Country field, turn on Include this field in register form and save, then make sure it is listed on the Register tab. See also <a href=\"https:\/\/userswp.io\/documentation\/article\/troubleshooting\/why-cant-i-see-fields-in-form-builder-register\/\">Why Can&#8217;t I See Fields in Form Builder &gt; Register?<\/a><\/p>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-form-fields-side-by-side\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-form-fields-side-by-side\" aria-expanded=\"false\" aria-controls=\"collapse-form-fields-side-by-side\">How do I show two form fields side by side, like city and state?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-form-fields-side-by-side\" aria-labelledby=\"heading-form-fields-side-by-side\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">UsersWP has no layout setting for this, but you can give fields a CSS class and style them. In UsersWP &gt; Form Builder, open each of the two fields and enter <code>uwp-half<\/code> in CSS class, then save. CSS class is an advanced setting, so click Show Advanced if you can&#8217;t see it. Make sure the two fields sit next to each other in the form.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then add this CSS in Appearance &gt; Customize &gt; Additional CSS, or wherever your theme takes custom CSS:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>.uwp-half { display: inline-block; width: 49%; vertical-align: top; }<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On small screens you may want them stacked again, which you can do by wrapping that rule in <code>@media (min-width: 576px) { }<\/code>.<\/p>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-customize-registration-form\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-customize-registration-form\" aria-expanded=\"false\" aria-controls=\"collapse-customize-registration-form\">How do I customize the UsersWP registration form?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-customize-registration-form\" aria-labelledby=\"heading-customize-registration-form\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">Use the form builder. Go to UsersWP &gt; Form Builder and open the Register tab to choose which fields appear and in what order. A new install has first name, last name, username, email and password.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To drop a field, remove it from the Register tab. Email is the only field you cannot remove. Without a username field UsersWP creates the username for the user, and without a password field it generates a password and emails it to them.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To add a field, create it in the Account tab with Include this field in register form switched on, then add it in the Register tab.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The settings for each form, such as the user role, registration action and redirect, are in UsersWP &gt; User Types, where you can also create separate forms for different user types. Log in with Facebook and other networks comes from the Social Login add-on; see the <a href=\"https:\/\/userswp.io\/documentation\/article\/social-login\/facebook-setup-guide\/\">Facebook Setup Guide<\/a>.<\/p>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-strong-passwords\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-strong-passwords\" aria-expanded=\"false\" aria-controls=\"collapse-strong-passwords\">Can UsersWP enforce strong passwords with a strength meter?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-strong-passwords\" aria-labelledby=\"heading-strong-passwords\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">Yes. The register form shows the WordPress password strength meter as the user types. To require a strong password:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to UsersWP > Settings > General > Register.<\/li>\n\n\n\n<li>Set Minimum password strength to Medium or Strong.<\/li>\n\n\n\n<li>Optionally change the error message under the advanced settings.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">The create account button stays disabled until the password reaches that strength. The same advanced settings let you set a minimum and maximum password length.<\/p>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-form-fields-missing\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-form-fields-missing\" aria-expanded=\"false\" aria-controls=\"collapse-form-fields-missing\">Why are fields missing from the UsersWP register or account form?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-form-fields-missing\" aria-labelledby=\"heading-form-fields-missing\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">A field only shows on a form when it is switched on in the form builder. Go to UsersWP &gt; Form Builder, open the Account tab and click the field to check its settings:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Is active must be on, or the field is not shown anywhere.<\/li>\n\n\n\n<li>Include this field in register form must be on for the register form, and the field must also be added in the Register tab.<\/li>\n\n\n\n<li>Fields set to For admin use only? are hidden from users.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">If fields disappeared after moving the site, check these first, because a database copy can leave them switched off. UsersWP keeps its fields in its own tables (<code>uwp_form_fields<\/code> and <code>uwp_form_extras<\/code> with your table prefix), so make sure your migration copied them with data.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">See also <a href=\"https:\/\/userswp.io\/documentation\/article\/troubleshooting\/why-cant-i-see-fields-in-form-builder-register\/\">Why Can&#8217;t I See Fields in Form Builder &gt; Register?<\/a> and <a href=\"https:\/\/userswp.io\/documentation\/article\/first-steps\/working-with-the-form-builder\/\">Working with the Form Builder<\/a>.<\/p>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-form-builder-duplicate-fields\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-form-builder-duplicate-fields\" aria-expanded=\"false\" aria-controls=\"collapse-form-builder-duplicate-fields\">Why do fields show twice in the Form Builder or not appear on the register form?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-form-builder-duplicate-fields\" aria-labelledby=\"heading-form-builder-duplicate-fields\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">Duplicate or missing default fields usually mean the plugin&#8217;s install or upgrade step didn&#8217;t finish, for example because the server ran out of time or memory during an update. Try this before reinstalling anything:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Back up your database.<\/li>\n\n\n\n<li>Update UsersWP to the latest version.<\/li>\n\n\n\n<li>Go to UsersWP &gt; Tools and run Clear version numbers. This makes the install and upgrade routines run again.<\/li>\n\n\n\n<li>Open UsersWP &gt; Form Builder, select the form for each user type, remove any duplicate fields and save.<\/li>\n\n\n\n<li>Clear your site cache and test the register page while logged out.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Don&#8217;t uninstall with &#8220;erase data&#8221; enabled under UsersWP &gt; Uninstall, as that deletes UsersWP&#8217;s user data and pages.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If a field is missing from the profile&#8217;s More Info tab, edit the field in the Form Builder and add &#8220;More info tab&#8221; to &#8220;Show in what locations?&#8221;. The More Info tab itself is added in UsersWP &gt; Form Builder &gt; Profile Tabs. See also <a href=\"https:\/\/userswp.io\/documentation\/article\/troubleshooting\/why-cant-i-see-fields-in-form-builder-register\/\">Why can&#8217;t I see fields in Form Builder &gt; Register?<\/a>.<\/p>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-geodirectory-add-listing-login\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-geodirectory-add-listing-login\" aria-expanded=\"false\" aria-controls=\"collapse-geodirectory-add-listing-login\">How do I send logged-out users from the GeoDirectory add listing page to the UsersWP login and register pages?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-geodirectory-add-listing-login\" aria-labelledby=\"heading-geodirectory-add-listing-login\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">When a logged-out visitor opens the add listing page, GeoDirectory shows &#8220;You must login to post.&#8221; with Login and Register buttons under it. With UsersWP active and its login and register pages set in UsersWP > Settings > General > Pages, those buttons go to the UsersWP pages. After logging in, the user is sent back to the add listing page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you only see the message and no buttons, check:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The add listing shortcode or block has &#8220;Show the login and register links&#8221; turned on. In a shortcode that is <code>&#091;&lt;span&gt;&lt;\/span&gt;gd_add_listing show_login=&quot;1&quot;&#093;<\/code>, which is the default.<\/li>\n\n\n\n<li>The Register button only appears when Settings > General > Membership > Anyone can register is ticked.<\/li>\n<\/ul>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-hide-login-register-logged-in\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-hide-login-register-logged-in\" aria-expanded=\"false\" aria-controls=\"collapse-hide-login-register-logged-in\">How do I hide the login and register pages from logged-in users?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-hide-login-register-logged-in\" aria-labelledby=\"heading-hide-login-register-logged-in\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">UsersWP already keeps logged-in users off those pages. If a logged-in user opens the login, register, forgot password or reset password page, they are sent to the account page instead, or to the <code>redirect_to<\/code> address if the link has one. Developers can change where they go with the <code>uwp_logged_in_redirect<\/code> filter.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To hide the menu links as well, add them from the UsersWP Endpoints box in Appearance &gt; Menus. Links from its Logged-Out tab (Register, Login, Forgot Password) are hidden from logged-in users, and links from the Logged-In tab, such as Account and Logout, are hidden from visitors. If you can&#8217;t see the box, open Screen Options at the top of the Menus screen and tick UsersWP Endpoints. There is more on this in <a href=\"https:\/\/userswp.io\/documentation\/article\/first-steps\/add-menu-items\/\">Add Menu Items<\/a>.<\/p>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-login-form-title\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-login-form-title\" aria-expanded=\"false\" aria-controls=\"collapse-login-form-title\">How do I change or remove the title on the UsersWP login form?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-login-form-title\" aria-labelledby=\"heading-login-form-title\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">The login form has a Form title setting. In the UWP &gt; Login block or widget it&#8217;s under the advanced settings. With the shortcode, use <code>form_title<\/code>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>&#091;&lt;span&gt;&lt;\/span&gt;uwp_login form_title=&quot;0&quot;&#093;<\/code> removes the title.<\/li>\n\n\n\n<li><code>&#091;&lt;span&gt;&lt;\/span&gt;uwp_login form_title=&quot;Sign in&quot;&#093;<\/code> changes it.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Edit the page set as your login page in UsersWP &gt; General &gt; Pages to change the shortcode there. The register form has the same option, for example <code>&#091;&lt;span&gt;&lt;\/span&gt;uwp_register form_title=&quot;0&quot;&#093;<\/code>. Developers can also change titles with the <code>uwp_template_form_title<\/code> filter. All login options are listed in <a href=\"https:\/\/userswp.io\/documentation\/article\/core-widgets\/uwp-login\/\">UWP &gt; Login<\/a>.<\/p>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-invalid-key-password-reset\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-invalid-key-password-reset\" aria-expanded=\"false\" aria-controls=\"collapse-invalid-key-password-reset\">Why do I get an &quot;invalid key&quot; error when resetting a password?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-invalid-key-password-reset\" aria-labelledby=\"heading-invalid-key-password-reset\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">Password reset and account activation links carry a one time key that WordPress stores for the user. &#8220;Invalid key&#8221; means the key in the link doesn&#8217;t match the one stored. Check these causes:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The link was already used, or the user asked for another reset since. Only the newest link works.<\/li>\n\n\n\n<li>The link has expired. WordPress keeps reset keys valid for one day by default.<\/li>\n\n\n\n<li>A persistent object cache (Memcached or Redis) is returning old user data. UsersWP clears the user&#8217;s cache before it checks the key, so flush the object cache and test again with it turned off. If that fixes it, ask your host to check the object cache setup.<\/li>\n\n\n\n<li>A page cache is serving a stored copy of the reset page. Exclude the login, register, forgot password, reset password and account pages from page caching.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">For more on caching and login pages, see <a href=\"https:\/\/userswp.io\/documentation\/article\/troubleshooting\/login-cache-issue-site-showing-logged-out-after-login\/\">Login cache issue, site showing logged out after login<\/a>.<\/p>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-users-register-cannot-login\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-users-register-cannot-login\" aria-expanded=\"false\" aria-controls=\"collapse-users-register-cannot-login\">New users can register but can&#x27;t log in. What&#x27;s wrong?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-users-register-cannot-login\" aria-labelledby=\"heading-users-register-cannot-login\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">UsersWP shows the error that WordPress returns when a login fails, so start with the exact message on the login form.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>&#8220;Your account is not activated yet&#8221; means the user type uses the Require Email Activation registration action. The user has to click the link in their activation email, and the message has a Resend link. Check the setting in UsersWP &gt; User Types.<\/li>\n\n\n\n<li>A message about an administrator needing to activate the account usually comes from another plugin. Some security plugins have a manual approval option for new registrations. Approve the user there or turn that option off.<\/li>\n\n\n\n<li>If you use our Moderate User Registration add-on, new users can&#8217;t log in until you approve them.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">If users see a blank page after registering, a PHP error is the usual cause. Turn on <code>WP_DEBUG_LOG<\/code> and check <code>wp-content\/debug.log<\/code>. More checks are in <a href=\"https:\/\/userswp.io\/documentation\/article\/troubleshooting\/why-can-my-users-not-register\/\">Why can my users not register?<\/a>.<\/p>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-login-form-width-lightbox\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-login-form-width-lightbox\" aria-expanded=\"false\" aria-controls=\"collapse-login-form-width-lightbox\">Why is the UsersWP login form full width and the login lightbox not opening?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-login-form-width-lightbox\" aria-labelledby=\"heading-login-form-width-lightbox\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">The UsersWP login form fills the width of whatever it&#8217;s placed in. On a full width page it stretches across the screen, so put the shortcode or block inside a narrower column or group.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If clicking Login opens the login page instead of the lightbox, check these:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Default Design Style is set to Bootstrap in UsersWP &gt; General &gt; Developer.<\/li>\n\n\n\n<li>Login Lightbox is ticked in UsersWP &gt; General &gt; Login, and Register Lightbox in UsersWP &gt; General &gt; Register.<\/li>\n\n\n\n<li>Your menu links were added from the UsersWP Endpoints box in Appearance &gt; Menus. A custom link with the same URL doesn&#8217;t open the lightbox. Remove it and add the endpoint item instead.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Other links can open the lightbox if you give them the class <code>uwp-login-link<\/code> or <code>uwp-register-link<\/code>. After a login in the lightbox, the current page reloads. See <a href=\"https:\/\/userswp.io\/documentation\/article\/first-steps\/add-menu-items\/\">Add menu items<\/a> for the menu setup.<\/p>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-login-popup-modal\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-login-popup-modal\" aria-expanded=\"false\" aria-controls=\"collapse-login-popup-modal\">Can I show the UsersWP login form in a popup or modal?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-login-popup-modal\" aria-labelledby=\"heading-login-popup-modal\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">Yes, UsersWP has its own login and register lightbox, so you don&#8217;t need a popup plugin. It&#8217;s on by default: check Login Lightbox in UsersWP &gt; General &gt; Login and Register Lightbox in UsersWP &gt; General &gt; Register. The Default Design Style in UsersWP &gt; General &gt; Developer must be Bootstrap.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The lightbox opens from:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>UsersWP menu items added from the UsersWP Endpoints box in Appearance &gt; Menus<\/li>\n\n\n\n<li>The login and register links that GeoDirectory shows, for example on the add listing page<\/li>\n\n\n\n<li>Any link with the class <code>uwp-login-link<\/code> or <code>uwp-register-link<\/code>, or the attribute <code>data-uwp-link=&quot;login&quot;<\/code> or <code>data-uwp-link=&quot;register&quot;<\/code><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">For example: <code>&lt;a href=&quot;\/login\/&quot; class=&quot;uwp-login-link&quot;&gt;Log in&lt;\/a&gt;<\/code>. After logging in through the lightbox, the current page reloads.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you still prefer a popup plugin, place the <code>&#091;&lt;span&gt;&lt;\/span&gt;uwp_login&#093;<\/code> or <code>&#091;&lt;span&gt;&lt;\/span&gt;uwp_register&#093;<\/code> shortcode inside the popup. The GeoDirectory favourite button sends logged out visitors to the login page and brings them back to the listing after they log in.<\/p>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-login-redirect-default\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-login-redirect-default\" aria-expanded=\"false\" aria-controls=\"collapse-login-redirect-default\">How do I set the UsersWP login redirect back to the WordPress default?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-login-redirect-default\" aria-labelledby=\"heading-login-redirect-default\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">Go to UsersWP &gt; General &gt; Login and change Login Redirect Page. Besides your pages, it has three options: Last User Page (the default, which sends users back to the page they were on), Default Redirect and Custom Redirect.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Default Redirect sends users to your home page, unless another plugin changes it through the WordPress <code>login_redirect<\/code> filter. It does not open wp-admin the way the wp-login.php form does. To send users to the dashboard, choose Custom Redirect and enter your <code>\/wp-admin\/<\/code> address in Redirect Custom URL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can send each user role somewhere different in <a href=\"https:\/\/userswp.io\/documentation\/article\/getting-started\/settings-overview-for-userswp-redirects\/\">UsersWP &gt; Redirects<\/a>. Role based redirects do not apply while Login Redirect Page is set to Last User Page. Developers can override the result with the <code>uwp_login_redirect<\/code> filter.<\/p>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-login-redirect-current-page\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-login-redirect-current-page\" aria-expanded=\"false\" aria-controls=\"collapse-login-redirect-current-page\">Why does UsersWP send users to the homepage after login instead of the page they were on?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-login-redirect-current-page\" aria-labelledby=\"heading-login-redirect-current-page\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">The Login Redirect Page setting in UsersWP &gt; General &gt; Login decides where people land after logging in. With &#8220;Last User Page&#8221; selected, UsersWP sends them back to the page they came from. If the browser didn&#8217;t pass on a previous page, for example because the visitor opened the login page directly, they go to your homepage instead.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A few other things change where people end up:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A <code>redirect_to<\/code> parameter in the login link always wins, for example <code>\/login\/?redirect_to=https:\/\/example.com\/pricing\/<\/code>. Use this on buttons that should bring people back to a particular page.<\/li>\n\n\n\n<li>The login lightbox reloads the current page after a successful login. Tick &#8220;Enable Login Lightbox Redirect&#8221; in the same settings tab if you want the lightbox to follow your redirect setting.<\/li>\n\n\n\n<li>Role based redirects in UsersWP &gt; Redirects don&#8217;t apply while &#8220;Last User Page&#8221; is selected.<\/li>\n\n\n\n<li>A logged in user who opens the login page is sent to the account page.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Redirects after registration are set per form: go to UsersWP &gt; User Types, edit the form and pick its Redirect Page. The <a href=\"https:\/\/userswp.io\/documentation\/article\/getting-started\/settings-overview-for-userswp-redirects\/\">Redirects settings overview<\/a> explains the role based options.<\/p>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-logout-link\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-logout-link\" aria-expanded=\"false\" aria-controls=\"collapse-logout-link\">How do I add a working logout link with UsersWP?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-logout-link\" aria-labelledby=\"heading-logout-link\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">Don&#8217;t link straight to <code>wp-login.php?action=logout<\/code>. Without the security nonce WordPress shows a &#8220;Do you really want to log out?&#8221; screen instead of logging the user out. Use one of these instead:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In Appearance > Menus, open the UsersWP Endpoints box and add the Log out item to your menu. See <a href=\"https:\/\/userswp.io\/documentation\/article\/first-steps\/add-menu-items\/\">Add menu items<\/a>.<\/li>\n\n\n\n<li>The account page already has a Logout tab.<\/li>\n\n\n\n<li>In theme code, build the link with the WordPress function <code>wp_logout_url()<\/code>.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">To choose where users land after logging out, set the Logout Redirect Page in UsersWP > Settings > General > Login, or per role in UsersWP > Settings > Redirects.<\/p>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-register-redirect-not-working\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-register-redirect-not-working\" aria-expanded=\"false\" aria-controls=\"collapse-register-redirect-not-working\">Why doesn&#x27;t UsersWP redirect users after they register?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-register-redirect-not-working\" aria-labelledby=\"heading-register-redirect-not-working\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">UsersWP only uses the registration redirect when the registration action is Auto Approve + Auto Login. With the other actions the new user is not logged in yet, so they stay on the register page and see a message: Require Email Activation tells them to check their email for the activation link, and Auto Approve asks them to log in.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to UsersWP &gt; User Types and edit your registration form.<\/li>\n\n\n\n<li>Set Registration Action to Auto Approve + Auto Login. The Redirect Page option appears once you pick it.<\/li>\n\n\n\n<li>Choose a page, Last User Page (the page they came from) or Custom Redirect with your own URL, then save.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">A <code>redirect_to<\/code> parameter in the register page URL takes priority over this setting. If you need email activation, there is no redirect after signing up. Once the user activates and logs in, the Login Redirect Page in UsersWP &gt; General &gt; Login decides where they go.<\/p>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-redirect-back-after-login\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-redirect-back-after-login\" aria-expanded=\"false\" aria-controls=\"collapse-redirect-back-after-login\">How do I send users back to the page they were on after logging in with UsersWP?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-redirect-back-after-login\" aria-labelledby=\"heading-redirect-back-after-login\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">Set Login Redirect Page in UsersWP &gt; General &gt; Login to Last User Page. This is the default, and it sends the user back to the page they came from.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">UsersWP also replaces the WordPress login URL with your UsersWP login page and keeps the <code>redirect_to<\/code> address that WordPress adds. A &#8220;Log in to reply&#8221; link on a blog post therefore brings the user back to that post after they log in. Turn on Redirect wp-login.php? on the same screen if you also want anyone who opens wp-login.php directly to land on the UsersWP login page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With Login Lightbox switched on, logging in from the lightbox reloads the current page, so the user stays where they were. Turn on Enable Login Lightbox Redirect if you want the lightbox to follow the redirect setting instead.<\/p>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-last-user-page-redirect\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-last-user-page-redirect\" aria-expanded=\"false\" aria-controls=\"collapse-last-user-page-redirect\">Why is the Last User Page login redirect not working?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-last-user-page-redirect\" aria-labelledby=\"heading-last-user-page-redirect\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">With Login Redirect Page set to Last User Page in UsersWP &gt; General &gt; Login, UsersWP sends people back to the page they were on before the login page. It gets that page from the browser&#8217;s referrer when the login form loads. If they end up somewhere else, check these:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If someone opens the login page directly (a bookmark, a typed address or a link in an email), there is no previous page, so they go to the home page.<\/li>\n\n\n\n<li>A <code>redirect_to<\/code> value in the login link, or set on the login block or shortcode, always takes priority.<\/li>\n\n\n\n<li>The previous page is saved in a hidden field on the login form, so a cached copy of the login page can send everyone to the same old page. Exclude the login page from page caching.<\/li>\n\n\n\n<li>Some browsers, privacy extensions and security plugins strip the referrer, and then UsersWP has nothing to go back to.<\/li>\n\n\n\n<li>Role based redirects in UsersWP &gt; Redirects do not work while Last User Page is selected.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">A plugin or code snippet that uses the <code>uwp_login_redirect<\/code> filter can also override the destination, so test with other plugins disabled if none of the above applies. More on the options: <a href=\"https:\/\/userswp.io\/documentation\/article\/getting-started\/settings-overview-for-userswp-redirects\/\">Settings Overview for UsersWP &gt; Redirects<\/a>.<\/p>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-register-with-role\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-register-with-role\" aria-expanded=\"false\" aria-controls=\"collapse-register-with-role\">How do I register users with a specific role and redirect them to different pages?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-register-with-role\" aria-labelledby=\"heading-register-with-role\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">Use User Types. Each user type is a separate registration form with its own role and redirect.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to UsersWP &gt; User Types and add a user type for each role, for example one for subscribers and one for authors.<\/li>\n\n\n\n<li>For each one, set &#8220;User Role to Assign&#8221;, the Registration Action and the Redirect Page users go to after signing up.<\/li>\n\n\n\n<li>Add the fields each form needs in UsersWP &gt; Form Builder.<\/li>\n\n\n\n<li>Put the form on its own page with the form ID, for example <code>&#091;&lt;span&gt;&lt;\/span&gt;uwp_register id=&quot;2&quot;&#093;<\/code> on \/register-author\/. The UWP &gt; Register block has the same Form option.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">To let people pick their type on one page instead, select several forms under UsersWP &gt; General &gt; Register &gt; Register Form(s) and choose button groups or a dropdown as the selector style.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The administrator role isn&#8217;t offered, but be careful with roles like Editor: anyone who can reach the form gets that role. Redirects after login can be set per role in UsersWP &gt; Redirects.<\/p>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-register-lost-password-links\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-register-lost-password-links\" aria-expanded=\"false\" aria-controls=\"collapse-register-lost-password-links\">Where are the register and lost password links on the login form?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-register-lost-password-links\" aria-labelledby=\"heading-register-lost-password-links\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">The UsersWP login form shows a &#8220;Create account&#8221; link and a &#8220;Forgot password?&#8221; link below the Login button. They point to the register and forgot password pages chosen in UsersWP &gt; General &gt; Pages, so make sure both pages are set there. You can change the link text in UsersWP &gt; General &gt; Login under the advanced settings (Register Link Title and Forgot Password Link Title).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the links are missing from the default WordPress login screen (<code>wp-login.php<\/code>) or another plugin&#8217;s form, check these:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>WordPress only shows its Register link when &#8220;Anyone can register&#8221; is ticked in Settings &gt; General.<\/li>\n\n\n\n<li>Another login plugin may replace the WordPress login screen with its own form. That plugin&#8217;s settings decide which links appear.<\/li>\n\n\n\n<li>UsersWP doesn&#8217;t change other plugins&#8217; forms. If &#8220;erase data&#8221; was enabled under UsersWP &gt; Uninstall when you deleted it, UsersWP also removed its own pages (login, register, account and so on), so any menu links to those pages stop working.<\/li>\n<\/ul>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-register-with-email-only\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-register-with-email-only\" aria-expanded=\"false\" aria-controls=\"collapse-register-with-email-only\">Can users register with only an email address, without a username or password?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-register-with-email-only\" aria-labelledby=\"heading-register-with-email-only\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">Yes. Username and password are optional on the UsersWP register form. Email is the only field you cannot remove.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to UsersWP &gt; Form Builder and open the Register tab.<\/li>\n\n\n\n<li>Remove the Username and Password fields from the register form.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Without a username field, UsersWP builds the username from the first and last name when the form has them, falling back to the start of the email address if that name is taken. If the form has no name fields, the email address itself becomes the username. Without a password field, UsersWP generates a password and includes it in the registration email.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The UsersWP login form accepts either a username or an email address, so users can log in with their email. To allow email only, see <a href=\"https:\/\/userswp.io\/documentation\/article\/code-snippets\/how-to-force-users-to-login-using-their-email-address\/\">How to Force Users to Login Using Their Email Address?<\/a>.<\/p>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-registration-spinning-timeout\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-registration-spinning-timeout\" aria-expanded=\"false\" aria-controls=\"collapse-registration-spinning-timeout\">Why does registration keep spinning or time out even though the user is created?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-registration-spinning-timeout\" aria-labelledby=\"heading-registration-spinning-timeout\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">If the new user shows up in Users but the form keeps spinning, the account was saved and something after that step is hanging, such as logging the user in, sending the emails or the redirect. A caching or optimisation plugin, or an email plugin that can&#8217;t reach its mail server, is the usual cause.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Test with your caching plugin turned off. If registration works, exclude the UsersWP pages (register, login, account, forgot password, reset password and change password) from page caching and from JavaScript minification or deferral.<\/li>\n\n\n\n<li>Send a test email from your SMTP plugin. If it can&#8217;t connect, every registration waits for the email to time out.<\/li>\n\n\n\n<li>A Cloudflare 524 error means your server took too long to answer. Ask your host to check the PHP error log for that time.<\/li>\n\n\n\n<li>If it still hangs, deactivate other plugins one at a time to find the conflict.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">See also <a href=\"https:\/\/userswp.io\/documentation\/article\/troubleshooting\/why-can-my-users-not-register\/\">Why can my users not register?<\/a> and <a href=\"https:\/\/userswp.io\/documentation\/article\/troubleshooting\/login-cache-issue-site-showing-logged-out-after-login\/\">Login cache issue<\/a>.<\/p>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-resend-activation-email\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-resend-activation-email\" aria-expanded=\"false\" aria-controls=\"collapse-resend-activation-email\">How can a user get the UsersWP activation email sent again?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-resend-activation-email\" aria-labelledby=\"heading-resend-activation-email\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">When the registration action is Require Email Activation, UsersWP shows users a Resend link that sends a fresh activation email. It appears in the message shown right after they register, and in the &#8220;Your account is not activated yet&#8221; error they get if they try to log in or reset their password before activating.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also do it as an admin. In Users &gt; All Users, hover over a user who has not confirmed their email and click Resend Activation, or Activate User to activate the account yourself. Both are in the Bulk actions menu as well (Resend Activation and Activate Users), so you can handle several users at once.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If no activation emails arrive at all, the problem is usually mail delivery from your server. An SMTP plugin is the common fix.<\/p>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-stop-fake-registrations\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-stop-fake-registrations\" aria-expanded=\"false\" aria-controls=\"collapse-stop-fake-registrations\">How do I stop spam and fake user registrations?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-stop-fake-registrations\" aria-labelledby=\"heading-stop-fake-registrations\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">Combine a few measures, because bots and people signing up by hand need different fixes.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Add the UsersWP reCAPTCHA add-on to the register form to stop most bots. See the <a href=\"https:\/\/userswp.io\/documentation\/article\/recaptcha\/recaptcha-setup-guide\/\">ReCaptcha setup guide<\/a>.<\/li>\n\n\n\n<li>Set the Registration Action to Require Email Activation for each form in UsersWP &gt; User Types. Accounts with fake email addresses never get activated, and you can delete them later. With Auto Approve + Auto Login, anyone can finish signing up with an address they don&#8217;t own.<\/li>\n\n\n\n<li>Approve every new user by hand with the <a href=\"https:\/\/userswp.io\/documentation\/article\/moderate-user-registration\/moderate-user-registration-setup-guide\/\">Moderate User Registration<\/a> add-on.<\/li>\n\n\n\n<li>Set a minimum username length in UsersWP &gt; General &gt; Register.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">For comments, tick &#8220;Users must be registered and logged in to comment&#8221; in Settings &gt; Discussion, or use the GD reCAPTCHA add-on if you run GeoDirectory. You can use both reCAPTCHA add-ons on one site as long as they don&#8217;t protect the same form.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With email activation, users log in after clicking the link. Set the Login Redirect Page in UsersWP &gt; General &gt; Login if you want them to land on a page such as Add Listing.<\/p>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-header-account-menu\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-header-account-menu\" aria-expanded=\"false\" aria-controls=\"collapse-header-account-menu\">How do I show a welcome message or account menu in the header after login?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-header-account-menu\" aria-labelledby=\"heading-header-account-menu\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">Go to Appearance &gt; Menus and use the UsersWP Endpoints box. It lists your Account, Change Password and Profile pages and a Log out link for logged-in users, plus Register, Login and Forgot Password pages for logged-out visitors. UsersWP hides each item from the visitors it does not apply to, so you can put them all in your header menu.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For a dropdown, add the Account item, drag Profile, Change Password and Log out under it as sub items, and change its Navigation Label to something like &#8220;My Account&#8221;. There are more details in <a href=\"https:\/\/userswp.io\/documentation\/article\/first-steps\/add-menu-items\/\">Add Menu Items<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For a greeting with the user&#8217;s name, add the <a href=\"https:\/\/userswp.io\/documentation\/article\/core-widgets\/uwp-login\/\">UWP &gt; Login<\/a> block or widget to a header area, or use the shortcode <code>&#091;&lt;span&gt;&lt;\/span&gt;uwp_login logged_in_show=&quot;simple&quot;&#093;<\/code>. Logged-in users then see &#8220;Logged in as&#8221; with their avatar and name and a Logout button. Without that option it shows a small dashboard of account links instead.<\/p>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-login-redirects-home\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-login-redirects-home\" aria-expanded=\"false\" aria-controls=\"collapse-login-redirects-home\">Why am I sent to the home page instead of wp-admin after logging in?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-login-redirects-home\" aria-labelledby=\"heading-login-redirects-home\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">Logging in at \/wp-login.php should take an administrator to the dashboard. If you land on the home page, something is changing the login redirect. The usual causes are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Another plugin. bbPress, for example, sends users to the front end after login. Deactivate UsersWP and its add-ons to see whether it still happens.<\/li>\n\n\n\n<li>Your UsersWP redirect settings. Logins through UsersWP forms follow the Login Redirect Page in UsersWP > Settings > General > Login, or the per-role setting in UsersWP > Settings > Redirects.<\/li>\n\n\n\n<li>Restrict wp-admin in UsersWP > Settings > General > Login. Roles listed there cannot open the dashboard.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">To go straight to the dashboard, open \/wp-admin\/ while logged out. WordPress asks you to log in and then returns you there.<\/p>\n<\/div><\/div><\/div>\n<\/div>\n<script type=\"application\/ld+json\">{\n    \"@context\": \"https:\/\/schema.org\",\n    \"@type\": \"FAQPage\",\n    \"mainEntity\": [\n        {\n            \"@type\": \"Question\",\n            \"name\": \"How do I add login and register links to the \\u0022You must login to post\\u0022 message?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"That message comes from the GeoDirectory Add Listing form. Edit the page set as your Add Listing page and add show_login=\\u00221\\u0022 to the shortcode, for example [\\u003Cspan\\u003E\\u003C\/span\\u003Egd_add_listing show_login=\\u00221\\u0022]. Login and Register buttons then appear under the message.\\n\\n\\n\\nYou can change the message text too: [\\u003Cspan\\u003E\\u003C\/span\\u003Egd_add_listing show_login=\\u00221\\u0022 login_msg=\\u0022Please log in to add your listing.\\u0022]. If you use the GD \\u003E Add Listing block, the same options are in its settings.\\n\\n\\n\\nA few things to know:\\n\\n\\n\\n\\nWith UsersWP active, the links go to your UsersWP login and register pages, and they open in the lightbox if the UsersWP lightbox is enabled.\\n\\n\\n\\nThe Register button only shows when \\u0022Anyone can register\\u0022 is ticked in Settings \\u003E General.\\n\\n\\n\\nIf you\\u0027d rather let visitors post without an account, GeoDirectory has an \\u0022Allow posting without logging in?\\u0022 option in GeoDirectory \\u003E Settings \\u003E General (advanced settings).\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Why is the Country field blank or missing on the register form?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"UsersWP\\u0027s Country field starts as a plain text box, and a small script (countrySelect) turns it into a country picker with flags. If the field shows up empty, that script did not run on the page. Open your browser console on the register page: an error like countrySelect is not a function confirms it.\\n\\n\\n\\nThe usual cause is a caching or optimization plugin that combines, defers or delays JavaScript. Exclude wp-content\/plugins\/userswp\/assets\/js\/countrySelect.min.js from those options, clear the cache and test again in a private window.\\n\\n\\n\\nIf the field is not there at all, check that it is part of the register form. In UsersWP \\u003E Form Builder \\u003E Account, open the Country field, turn on Include this field in register form and save, then make sure it is listed on the Register tab. See also Why Can\\u0027t I See Fields in Form Builder \\u003E Register?\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"How do I show two form fields side by side, like city and state?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"UsersWP has no layout setting for this, but you can give fields a CSS class and style them. In UsersWP \\u003E Form Builder, open each of the two fields and enter uwp-half in CSS class, then save. CSS class is an advanced setting, so click Show Advanced if you can\\u0027t see it. Make sure the two fields sit next to each other in the form.\\n\\n\\n\\nThen add this CSS in Appearance \\u003E Customize \\u003E Additional CSS, or wherever your theme takes custom CSS:\\n\\n\\n\\n.uwp-half { display: inline-block; width: 49%; vertical-align: top; }\\n\\n\\n\\nOn small screens you may want them stacked again, which you can do by wrapping that rule in @media (min-width: 576px) { }.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"How do I customize the UsersWP registration form?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"Use the form builder. Go to UsersWP \\u003E Form Builder and open the Register tab to choose which fields appear and in what order. A new install has first name, last name, username, email and password.\\n\\n\\n\\nTo drop a field, remove it from the Register tab. Email is the only field you cannot remove. Without a username field UsersWP creates the username for the user, and without a password field it generates a password and emails it to them.\\n\\n\\n\\nTo add a field, create it in the Account tab with Include this field in register form switched on, then add it in the Register tab.\\n\\n\\n\\nThe settings for each form, such as the user role, registration action and redirect, are in UsersWP \\u003E User Types, where you can also create separate forms for different user types. Log in with Facebook and other networks comes from the Social Login add-on; see the Facebook Setup Guide.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Can UsersWP enforce strong passwords with a strength meter?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"Yes. The register form shows the WordPress password strength meter as the user types. To require a strong password:\\n\\n\\n\\n\\nGo to UsersWP \\u003E Settings \\u003E General \\u003E Register.\\n\\n\\n\\nSet Minimum password strength to Medium or Strong.\\n\\n\\n\\nOptionally change the error message under the advanced settings.\\n\\n\\n\\n\\nThe create account button stays disabled until the password reaches that strength. The same advanced settings let you set a minimum and maximum password length.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Why are fields missing from the UsersWP register or account form?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"A field only shows on a form when it is switched on in the form builder. Go to UsersWP \\u003E Form Builder, open the Account tab and click the field to check its settings:\\n\\n\\n\\n\\nIs active must be on, or the field is not shown anywhere.\\n\\n\\n\\nInclude this field in register form must be on for the register form, and the field must also be added in the Register tab.\\n\\n\\n\\nFields set to For admin use only? are hidden from users.\\n\\n\\n\\n\\nIf fields disappeared after moving the site, check these first, because a database copy can leave them switched off. UsersWP keeps its fields in its own tables (uwp_form_fields and uwp_form_extras with your table prefix), so make sure your migration copied them with data.\\n\\n\\n\\nSee also Why Can\\u0027t I See Fields in Form Builder \\u003E Register? and Working with the Form Builder.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Why do fields show twice in the Form Builder or not appear on the register form?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"Duplicate or missing default fields usually mean the plugin\\u0027s install or upgrade step didn\\u0027t finish, for example because the server ran out of time or memory during an update. Try this before reinstalling anything:\\n\\n\\n\\n\\nBack up your database.\\n\\n\\n\\nUpdate UsersWP to the latest version.\\n\\n\\n\\nGo to UsersWP \\u003E Tools and run Clear version numbers. This makes the install and upgrade routines run again.\\n\\n\\n\\nOpen UsersWP \\u003E Form Builder, select the form for each user type, remove any duplicate fields and save.\\n\\n\\n\\nClear your site cache and test the register page while logged out.\\n\\n\\n\\n\\nDon\\u0027t uninstall with \\u0022erase data\\u0022 enabled under UsersWP \\u003E Uninstall, as that deletes UsersWP\\u0027s user data and pages.\\n\\n\\n\\nIf a field is missing from the profile\\u0027s More Info tab, edit the field in the Form Builder and add \\u0022More info tab\\u0022 to \\u0022Show in what locations?\\u0022. The More Info tab itself is added in UsersWP \\u003E Form Builder \\u003E Profile Tabs. See also Why can\\u0027t I see fields in Form Builder \\u003E Register?.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"How do I send logged-out users from the GeoDirectory add listing page to the UsersWP login and register pages?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"When a logged-out visitor opens the add listing page, GeoDirectory shows \\u0022You must login to post.\\u0022 with Login and Register buttons under it. With UsersWP active and its login and register pages set in UsersWP \\u003E Settings \\u003E General \\u003E Pages, those buttons go to the UsersWP pages. After logging in, the user is sent back to the add listing page.\\n\\n\\n\\nIf you only see the message and no buttons, check:\\n\\n\\n\\n\\nThe add listing shortcode or block has \\u0022Show the login and register links\\u0022 turned on. In a shortcode that is [\\u003Cspan\\u003E\\u003C\/span\\u003Egd_add_listing show_login=\\u00221\\u0022], which is the default.\\n\\n\\n\\nThe Register button only appears when Settings \\u003E General \\u003E Membership \\u003E Anyone can register is ticked.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"How do I hide the login and register pages from logged-in users?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"UsersWP already keeps logged-in users off those pages. If a logged-in user opens the login, register, forgot password or reset password page, they are sent to the account page instead, or to the redirect_to address if the link has one. Developers can change where they go with the uwp_logged_in_redirect filter.\\n\\n\\n\\nTo hide the menu links as well, add them from the UsersWP Endpoints box in Appearance \\u003E Menus. Links from its Logged-Out tab (Register, Login, Forgot Password) are hidden from logged-in users, and links from the Logged-In tab, such as Account and Logout, are hidden from visitors. If you can\\u0027t see the box, open Screen Options at the top of the Menus screen and tick UsersWP Endpoints. There is more on this in Add Menu Items.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"How do I change or remove the title on the UsersWP login form?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"The login form has a Form title setting. In the UWP \\u003E Login block or widget it\\u0027s under the advanced settings. With the shortcode, use form_title:\\n\\n\\n\\n\\n[\\u003Cspan\\u003E\\u003C\/span\\u003Euwp_login form_title=\\u00220\\u0022] removes the title.\\n\\n\\n\\n[\\u003Cspan\\u003E\\u003C\/span\\u003Euwp_login form_title=\\u0022Sign in\\u0022] changes it.\\n\\n\\n\\n\\nEdit the page set as your login page in UsersWP \\u003E General \\u003E Pages to change the shortcode there. The register form has the same option, for example [\\u003Cspan\\u003E\\u003C\/span\\u003Euwp_register form_title=\\u00220\\u0022]. Developers can also change titles with the uwp_template_form_title filter. All login options are listed in UWP \\u003E Login.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Why do I get an \\u0022invalid key\\u0022 error when resetting a password?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"Password reset and account activation links carry a one time key that WordPress stores for the user. \\u0022Invalid key\\u0022 means the key in the link doesn\\u0027t match the one stored. Check these causes:\\n\\n\\n\\n\\nThe link was already used, or the user asked for another reset since. Only the newest link works.\\n\\n\\n\\nThe link has expired. WordPress keeps reset keys valid for one day by default.\\n\\n\\n\\nA persistent object cache (Memcached or Redis) is returning old user data. UsersWP clears the user\\u0027s cache before it checks the key, so flush the object cache and test again with it turned off. If that fixes it, ask your host to check the object cache setup.\\n\\n\\n\\nA page cache is serving a stored copy of the reset page. Exclude the login, register, forgot password, reset password and account pages from page caching.\\n\\n\\n\\n\\nFor more on caching and login pages, see Login cache issue, site showing logged out after login.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"New users can register but can\\u0027t log in. What\\u0027s wrong?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"UsersWP shows the error that WordPress returns when a login fails, so start with the exact message on the login form.\\n\\n\\n\\n\\n\\u0022Your account is not activated yet\\u0022 means the user type uses the Require Email Activation registration action. The user has to click the link in their activation email, and the message has a Resend link. Check the setting in UsersWP \\u003E User Types.\\n\\n\\n\\nA message about an administrator needing to activate the account usually comes from another plugin. Some security plugins have a manual approval option for new registrations. Approve the user there or turn that option off.\\n\\n\\n\\nIf you use our Moderate User Registration add-on, new users can\\u0027t log in until you approve them.\\n\\n\\n\\n\\nIf users see a blank page after registering, a PHP error is the usual cause. Turn on WP_DEBUG_LOG and check wp-content\/debug.log. More checks are in Why can my users not register?.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Why is the UsersWP login form full width and the login lightbox not opening?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"The UsersWP login form fills the width of whatever it\\u0027s placed in. On a full width page it stretches across the screen, so put the shortcode or block inside a narrower column or group.\\n\\n\\n\\nIf clicking Login opens the login page instead of the lightbox, check these:\\n\\n\\n\\n\\nDefault Design Style is set to Bootstrap in UsersWP \\u003E General \\u003E Developer.\\n\\n\\n\\nLogin Lightbox is ticked in UsersWP \\u003E General \\u003E Login, and Register Lightbox in UsersWP \\u003E General \\u003E Register.\\n\\n\\n\\nYour menu links were added from the UsersWP Endpoints box in Appearance \\u003E Menus. A custom link with the same URL doesn\\u0027t open the lightbox. Remove it and add the endpoint item instead.\\n\\n\\n\\n\\nOther links can open the lightbox if you give them the class uwp-login-link or uwp-register-link. After a login in the lightbox, the current page reloads. See Add menu items for the menu setup.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Can I show the UsersWP login form in a popup or modal?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"Yes, UsersWP has its own login and register lightbox, so you don\\u0027t need a popup plugin. It\\u0027s on by default: check Login Lightbox in UsersWP \\u003E General \\u003E Login and Register Lightbox in UsersWP \\u003E General \\u003E Register. The Default Design Style in UsersWP \\u003E General \\u003E Developer must be Bootstrap.\\n\\n\\n\\nThe lightbox opens from:\\n\\n\\n\\n\\nUsersWP menu items added from the UsersWP Endpoints box in Appearance \\u003E Menus\\n\\n\\n\\nThe login and register links that GeoDirectory shows, for example on the add listing page\\n\\n\\n\\nAny link with the class uwp-login-link or uwp-register-link, or the attribute data-uwp-link=\\u0022login\\u0022 or data-uwp-link=\\u0022register\\u0022\\n\\n\\n\\n\\nFor example: \\u003Ca href=\\u0022\/login\/\\u0022 class=\\u0022uwp-login-link\\u0022\\u003ELog in\\u003C\/a\\u003E. After logging in through the lightbox, the current page reloads.\\n\\n\\n\\nIf you still prefer a popup plugin, place the [\\u003Cspan\\u003E\\u003C\/span\\u003Euwp_login] or [\\u003Cspan\\u003E\\u003C\/span\\u003Euwp_register] shortcode inside the popup. The GeoDirectory favourite button sends logged out visitors to the login page and brings them back to the listing after they log in.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"How do I set the UsersWP login redirect back to the WordPress default?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"Go to UsersWP \\u003E General \\u003E Login and change Login Redirect Page. Besides your pages, it has three options: Last User Page (the default, which sends users back to the page they were on), Default Redirect and Custom Redirect.\\n\\n\\n\\nDefault Redirect sends users to your home page, unless another plugin changes it through the WordPress login_redirect filter. It does not open wp-admin the way the wp-login.php form does. To send users to the dashboard, choose Custom Redirect and enter your \/wp-admin\/ address in Redirect Custom URL.\\n\\n\\n\\nYou can send each user role somewhere different in UsersWP \\u003E Redirects. Role based redirects do not apply while Login Redirect Page is set to Last User Page. Developers can override the result with the uwp_login_redirect filter.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Why does UsersWP send users to the homepage after login instead of the page they were on?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"The Login Redirect Page setting in UsersWP \\u003E General \\u003E Login decides where people land after logging in. With \\u0022Last User Page\\u0022 selected, UsersWP sends them back to the page they came from. If the browser didn\\u0027t pass on a previous page, for example because the visitor opened the login page directly, they go to your homepage instead.\\n\\n\\n\\nA few other things change where people end up:\\n\\n\\n\\n\\nA redirect_to parameter in the login link always wins, for example \/login\/?redirect_to=https:\/\/example.com\/pricing\/. Use this on buttons that should bring people back to a particular page.\\n\\n\\n\\nThe login lightbox reloads the current page after a successful login. Tick \\u0022Enable Login Lightbox Redirect\\u0022 in the same settings tab if you want the lightbox to follow your redirect setting.\\n\\n\\n\\nRole based redirects in UsersWP \\u003E Redirects don\\u0027t apply while \\u0022Last User Page\\u0022 is selected.\\n\\n\\n\\nA logged in user who opens the login page is sent to the account page.\\n\\n\\n\\n\\nRedirects after registration are set per form: go to UsersWP \\u003E User Types, edit the form and pick its Redirect Page. The Redirects settings overview explains the role based options.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"How do I add a working logout link with UsersWP?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"Don\\u0027t link straight to wp-login.php?action=logout. Without the security nonce WordPress shows a \\u0022Do you really want to log out?\\u0022 screen instead of logging the user out. Use one of these instead:\\n\\n\\n\\n\\nIn Appearance \\u003E Menus, open the UsersWP Endpoints box and add the Log out item to your menu. See Add menu items.\\n\\n\\n\\nThe account page already has a Logout tab.\\n\\n\\n\\nIn theme code, build the link with the WordPress function wp_logout_url().\\n\\n\\n\\n\\nTo choose where users land after logging out, set the Logout Redirect Page in UsersWP \\u003E Settings \\u003E General \\u003E Login, or per role in UsersWP \\u003E Settings \\u003E Redirects.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Why doesn\\u0027t UsersWP redirect users after they register?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"UsersWP only uses the registration redirect when the registration action is Auto Approve + Auto Login. With the other actions the new user is not logged in yet, so they stay on the register page and see a message: Require Email Activation tells them to check their email for the activation link, and Auto Approve asks them to log in.\\n\\n\\n\\n\\nGo to UsersWP \\u003E User Types and edit your registration form.\\n\\n\\n\\nSet Registration Action to Auto Approve + Auto Login. The Redirect Page option appears once you pick it.\\n\\n\\n\\nChoose a page, Last User Page (the page they came from) or Custom Redirect with your own URL, then save.\\n\\n\\n\\n\\nA redirect_to parameter in the register page URL takes priority over this setting. If you need email activation, there is no redirect after signing up. Once the user activates and logs in, the Login Redirect Page in UsersWP \\u003E General \\u003E Login decides where they go.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"How do I send users back to the page they were on after logging in with UsersWP?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"Set Login Redirect Page in UsersWP \\u003E General \\u003E Login to Last User Page. This is the default, and it sends the user back to the page they came from.\\n\\n\\n\\nUsersWP also replaces the WordPress login URL with your UsersWP login page and keeps the redirect_to address that WordPress adds. A \\u0022Log in to reply\\u0022 link on a blog post therefore brings the user back to that post after they log in. Turn on Redirect wp-login.php? on the same screen if you also want anyone who opens wp-login.php directly to land on the UsersWP login page.\\n\\n\\n\\nWith Login Lightbox switched on, logging in from the lightbox reloads the current page, so the user stays where they were. Turn on Enable Login Lightbox Redirect if you want the lightbox to follow the redirect setting instead.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Why is the Last User Page login redirect not working?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"With Login Redirect Page set to Last User Page in UsersWP \\u003E General \\u003E Login, UsersWP sends people back to the page they were on before the login page. It gets that page from the browser\\u0027s referrer when the login form loads. If they end up somewhere else, check these:\\n\\n\\n\\n\\nIf someone opens the login page directly (a bookmark, a typed address or a link in an email), there is no previous page, so they go to the home page.\\n\\n\\n\\nA redirect_to value in the login link, or set on the login block or shortcode, always takes priority.\\n\\n\\n\\nThe previous page is saved in a hidden field on the login form, so a cached copy of the login page can send everyone to the same old page. Exclude the login page from page caching.\\n\\n\\n\\nSome browsers, privacy extensions and security plugins strip the referrer, and then UsersWP has nothing to go back to.\\n\\n\\n\\nRole based redirects in UsersWP \\u003E Redirects do not work while Last User Page is selected.\\n\\n\\n\\n\\nA plugin or code snippet that uses the uwp_login_redirect filter can also override the destination, so test with other plugins disabled if none of the above applies. More on the options: Settings Overview for UsersWP \\u003E Redirects.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"How do I register users with a specific role and redirect them to different pages?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"Use User Types. Each user type is a separate registration form with its own role and redirect.\\n\\n\\n\\n\\nGo to UsersWP \\u003E User Types and add a user type for each role, for example one for subscribers and one for authors.\\n\\n\\n\\nFor each one, set \\u0022User Role to Assign\\u0022, the Registration Action and the Redirect Page users go to after signing up.\\n\\n\\n\\nAdd the fields each form needs in UsersWP \\u003E Form Builder.\\n\\n\\n\\nPut the form on its own page with the form ID, for example [\\u003Cspan\\u003E\\u003C\/span\\u003Euwp_register id=\\u00222\\u0022] on \/register-author\/. The UWP \\u003E Register block has the same Form option.\\n\\n\\n\\n\\nTo let people pick their type on one page instead, select several forms under UsersWP \\u003E General \\u003E Register \\u003E Register Form(s) and choose button groups or a dropdown as the selector style.\\n\\n\\n\\nThe administrator role isn\\u0027t offered, but be careful with roles like Editor: anyone who can reach the form gets that role. Redirects after login can be set per role in UsersWP \\u003E Redirects.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Where are the register and lost password links on the login form?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"The UsersWP login form shows a \\u0022Create account\\u0022 link and a \\u0022Forgot password?\\u0022 link below the Login button. They point to the register and forgot password pages chosen in UsersWP \\u003E General \\u003E Pages, so make sure both pages are set there. You can change the link text in UsersWP \\u003E General \\u003E Login under the advanced settings (Register Link Title and Forgot Password Link Title).\\n\\n\\n\\nIf the links are missing from the default WordPress login screen (wp-login.php) or another plugin\\u0027s form, check these:\\n\\n\\n\\n\\nWordPress only shows its Register link when \\u0022Anyone can register\\u0022 is ticked in Settings \\u003E General.\\n\\n\\n\\nAnother login plugin may replace the WordPress login screen with its own form. That plugin\\u0027s settings decide which links appear.\\n\\n\\n\\nUsersWP doesn\\u0027t change other plugins\\u0027 forms. If \\u0022erase data\\u0022 was enabled under UsersWP \\u003E Uninstall when you deleted it, UsersWP also removed its own pages (login, register, account and so on), so any menu links to those pages stop working.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Can users register with only an email address, without a username or password?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"Yes. Username and password are optional on the UsersWP register form. Email is the only field you cannot remove.\\n\\n\\n\\n\\nGo to UsersWP \\u003E Form Builder and open the Register tab.\\n\\n\\n\\nRemove the Username and Password fields from the register form.\\n\\n\\n\\n\\nWithout a username field, UsersWP builds the username from the first and last name when the form has them, falling back to the start of the email address if that name is taken. If the form has no name fields, the email address itself becomes the username. Without a password field, UsersWP generates a password and includes it in the registration email.\\n\\n\\n\\nThe UsersWP login form accepts either a username or an email address, so users can log in with their email. To allow email only, see How to Force Users to Login Using Their Email Address?.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Why does registration keep spinning or time out even though the user is created?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"If the new user shows up in Users but the form keeps spinning, the account was saved and something after that step is hanging, such as logging the user in, sending the emails or the redirect. A caching or optimisation plugin, or an email plugin that can\\u0027t reach its mail server, is the usual cause.\\n\\n\\n\\n\\nTest with your caching plugin turned off. If registration works, exclude the UsersWP pages (register, login, account, forgot password, reset password and change password) from page caching and from JavaScript minification or deferral.\\n\\n\\n\\nSend a test email from your SMTP plugin. If it can\\u0027t connect, every registration waits for the email to time out.\\n\\n\\n\\nA Cloudflare 524 error means your server took too long to answer. Ask your host to check the PHP error log for that time.\\n\\n\\n\\nIf it still hangs, deactivate other plugins one at a time to find the conflict.\\n\\n\\n\\n\\nSee also Why can my users not register? and Login cache issue.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"How can a user get the UsersWP activation email sent again?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"When the registration action is Require Email Activation, UsersWP shows users a Resend link that sends a fresh activation email. It appears in the message shown right after they register, and in the \\u0022Your account is not activated yet\\u0022 error they get if they try to log in or reset their password before activating.\\n\\n\\n\\nYou can also do it as an admin. In Users \\u003E All Users, hover over a user who has not confirmed their email and click Resend Activation, or Activate User to activate the account yourself. Both are in the Bulk actions menu as well (Resend Activation and Activate Users), so you can handle several users at once.\\n\\n\\n\\nIf no activation emails arrive at all, the problem is usually mail delivery from your server. An SMTP plugin is the common fix.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"How do I stop spam and fake user registrations?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"Combine a few measures, because bots and people signing up by hand need different fixes.\\n\\n\\n\\n\\nAdd the UsersWP reCAPTCHA add-on to the register form to stop most bots. See the ReCaptcha setup guide.\\n\\n\\n\\nSet the Registration Action to Require Email Activation for each form in UsersWP \\u003E User Types. Accounts with fake email addresses never get activated, and you can delete them later. With Auto Approve + Auto Login, anyone can finish signing up with an address they don\\u0027t own.\\n\\n\\n\\nApprove every new user by hand with the Moderate User Registration add-on.\\n\\n\\n\\nSet a minimum username length in UsersWP \\u003E General \\u003E Register.\\n\\n\\n\\n\\nFor comments, tick \\u0022Users must be registered and logged in to comment\\u0022 in Settings \\u003E Discussion, or use the GD reCAPTCHA add-on if you run GeoDirectory. You can use both reCAPTCHA add-ons on one site as long as they don\\u0027t protect the same form.\\n\\n\\n\\nWith email activation, users log in after clicking the link. Set the Login Redirect Page in UsersWP \\u003E General \\u003E Login if you want them to land on a page such as Add Listing.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"How do I show a welcome message or account menu in the header after login?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"Go to Appearance \\u003E Menus and use the UsersWP Endpoints box. It lists your Account, Change Password and Profile pages and a Log out link for logged-in users, plus Register, Login and Forgot Password pages for logged-out visitors. UsersWP hides each item from the visitors it does not apply to, so you can put them all in your header menu.\\n\\n\\n\\nFor a dropdown, add the Account item, drag Profile, Change Password and Log out under it as sub items, and change its Navigation Label to something like \\u0022My Account\\u0022. There are more details in Add Menu Items.\\n\\n\\n\\nFor a greeting with the user\\u0027s name, add the UWP \\u003E Login block or widget to a header area, or use the shortcode [\\u003Cspan\\u003E\\u003C\/span\\u003Euwp_login logged_in_show=\\u0022simple\\u0022]. Logged-in users then see \\u0022Logged in as\\u0022 with their avatar and name and a Logout button. Without that option it shows a small dashboard of account links instead.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Why am I sent to the home page instead of wp-admin after logging in?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"Logging in at \/wp-login.php should take an administrator to the dashboard. If you land on the home page, something is changing the login redirect. The usual causes are:\\n\\n\\n\\n\\nAnother plugin. bbPress, for example, sends users to the front end after login. Deactivate UsersWP and its add-ons to see whether it still happens.\\n\\n\\n\\nYour UsersWP redirect settings. Logins through UsersWP forms follow the Login Redirect Page in UsersWP \\u003E Settings \\u003E General \\u003E Login, or the per-role setting in UsersWP \\u003E Settings \\u003E Redirects.\\n\\n\\n\\nRestrict wp-admin in UsersWP \\u003E Settings \\u003E General \\u003E Login. Roles listed there cannot open the dashboard.\\n\\n\\n\\n\\nTo go straight to the dashboard, open \/wp-admin\/ while logged out. WordPress asks you to log in and then returns you there.\"\n            }\n        }\n    ]\n}<\/script>","protected":false},"excerpt":{"rendered":"<p>Answers to common UsersWP questions about registration and login. Click a question to open the answer.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[41,7],"class_list":["post-797","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-how-tos","gd_placecategory-tips-tricks-more"],"_links":{"self":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/797","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"author":[{"embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/comments?post=797"}],"version-history":[{"count":0,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/797\/revisions"}],"wp:attachment":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/media?parent=797"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/tags?post=797"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/categories?post=797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}