We’re using geodirectory in conjunction with UsersWP and Astra / Elementor. So far, the integration with Elementor has gone swimmingly, and the site we’re working on is looking great. Except for one small problem: despite the GD Docs saying that integration with UsersWP allows you to redirect logged out users from the add listing page to the register / login page, we can’t actually find in the GD OR UsersWP docs how to actually do that.
Basically, we want our site to work like some of the GD example sites, where logged out users are redirected to the registration page upon clicking the add listing link, and then back to the actual add listing page upon completing registration / logging in.
We recorded a video in case you need extra clarification: https://d.pr/v/w518cD
Another small note: UsersWP clashes heavily with Elementor when the author box is enabled in UsersWP > UsersWP > Author Box. Perhaps there should be a note somewhere in the documentation about that? Apologies if there already is.
Alex RollinModeratorPost count: 19493
UsersWP, once the login and registration page are set, will filter the login/register links shown on the add listing page for logged out users.
Try getting your users to login before they get to that page, if that is what you are after.
About the author box, if you would like us to debug, please make a new topic over here where we support UsersWP
Thank you for getting back to us both here and on the UsersWP support, but I think you’re still not getting what we want here.
We want logged out users – when they click the add listing link – to be redirected to the login / register page, and then after they register / login we want them to then be redirected to the actual add listing page.
To put it quite frankly, our target user base for this site are not exactly techies. We don’t want them to click the add listing link, see an error message with a couple of small text links (which, as an aside, aren’t showing up even when “Show the login links if required” is ticked), get confused, and then leave. We want the whole experience of adding a listing to be seamless and easy for the user.
We made some headway with the Redirection plugin in the wordpress repository, and managed to use it to redirect logged out users from all CPT instances of /add-new-listing/ to the /login-register/ page. But we’re lost on step 2, which is to then redirect users on login to the /add-new-listing/ page.
Basically, we assumed based on some of the showcase sites that this functionality was built into the GD / GD-UsersWP integration features. In this showcase site https://www.dancelifemap.com/ this full functionality is in place: logged out users are redirected from the add listing page to the login / register page, and then back into the actual add listing page after registering.
If someone could show us how to do this with GD and UsersWP it would be much obliged. If this functionality does not come with GD and UsersWP integration as advertised on this page https://wpgeodirectory.com/docs-v2/integrations/userswp/ then we will be willing to pay a specialist to work it out for us, but we assumed this functionality was built in.
The site https://www.dancelifemap.com/ is using the GDV1 which is an older version of GeoDirectory plugin.
You have to go to edit add listing page and add one more parameter to the shortcode
so it looks like
. This will display a login and registration link.
Let me know if this resolves your issue or not.
Sorry but that issue with the login and registration links not displaying was merely an aside. That isn’t the main issue here.
As I said, “We want logged out users – when they click the add listing link – to be redirected to the login / register page, and then after they register / login we want them to then be redirected to the actual add listing page.”
That’s all. That’s what we’re trying to accomplish. Does that functionality exist in GDV2 / UsersWP at all — or do we need to hire a developer, or is this something that can be achieved with a third party plugin, or what?
This is not easily possible with GD or UWP. You can use a plugin like “Nav Menu Roles” which allows you to display menu item for logged in and logged out users. You can create two menu items one for logged in users which will be add a listing page whereas you can create another menu item with a custom link to the login page with add listing page as redirect parameter like http://www.yoursite.com/login/?redirect_to=http://www.yoursite.com/add-listing/?listing_type=gd_place
Let me know if this helps you.
Terri TutichFull MemberPost count: 18
I’m following up on this here as I have a similar issue. Is there a resolution for this? (Have also created a new post, but continuing to hunt for more options.)
I have made my previous reply public so you can check that. Please create a new ticket from next time instead of jumping to an existing ticket and we will help you there.
You must be logged in to reply to this topic.