Separate UsersWP login per Custom Post Type?
This topic contains 13 replies, has 2 voices, and was last updated by Alex Rollin 4 years, 7 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
April 7, 2020 at 9:43 pm #7863
Hi, I’m using UsersWP as my login for my GeoDirectory plugin. I have 2 “custom post types” in my Geodirectory (Brokers and Payroll), is it possible to create a different login for my other custom post type? Right now they’re showing up under the same one, and I don’t want to confuse my users.
Also, when I click “Payroll” it leads me to my Broker CPT listings, instead of my payroll CPT listings. How do I connect the “Add Listings > Payroll” link and the “My Listings > Payroll” link to go to my Payroll CPT pages?
Here’s the login page: https://www.bernieportal.com/payroll-directory-login/
And I have a screenshot attached too. Thanks!
April 7, 2020 at 11:06 pm #7869Hello,
UsersWP doesn’t have different login or registration forms, just the one, though that is something the developers have and will continue to consider for the future.
You could add a field to the registration form for them to self-identify, and see that field in their profile.
Altering the My Listings link behavior would probably require customization.
In the near future we are planning to release an addon to work with roles. That may help your case. However we don’t have any ETA on that at this time.
April 8, 2020 at 1:59 pm #7875Can you be a little more specific with your “adding a field to the registration form” suggestion? How would I go about doing that?
And the login form doesn’t work for both CPTs. When they click Add Listings or My Listings, whether for Brokers or Payroll CPTs, it links to Brokers–which was the first CPT I had set up. Do I need to set something up in the backend to direct the Payroll Add Listings and Payroll My Listings to the correct Payroll pages?
Thanks!
April 9, 2020 at 8:37 am #7889Use the Form Builder to add fields.
https://userswp.io/docs/core-plugin/userswp-form-builder/
Use the GeoDirectory endpoints to add links to each of the add lsiting pages.
April 10, 2020 at 5:02 pm #7905A few more questions:
1. For the form builder, once I’ve added a field for users to select, will it direct them to the the correct CPT login options (broker vs payroll)?
Ex: If they select broker it’ll link them to the broker listing options, and they won’t be able to select the payroll options2. Will setting up the endpoints fix this issue: I clicked on View My Payroll Listings in the login and it directed me to my Broker Listings instead. There’s not even a place to view my Payroll Listings even though I have a Payroll Listing set up under this account. (screenshot attached).
Thanks.
April 11, 2020 at 12:53 pm #79091. You will need to add links to your menu to direct users to the appropriate forms.
You can review the integration options and adjust the settings
April 13, 2020 at 6:42 pm #7922Hi, I’m sorry but I don’t understand. You said to direct users to the appropriate form. But both CPT options are on the same form. If I could have different forms per CPT then this wouldn’t be issue, but they’re sharing it right now so no matter what fields are selected, they’ll still be directed to the same form. Which does not fix my issue. Can I create a different form for each of my CPTs?
April 13, 2020 at 7:48 pm #7924Yes, each form has a separate link; only one form page is possible
https://wpgeodirectory.com/docs-v2/geodirectory/navigation/
If you have more questions about GD please post them to
April 13, 2020 at 8:06 pm #7925Ok, so how do I create 2 different forms? The link you sent me (https://wpgeodirectory.com/docs-v2/geodirectory/navigation/) does not fix my issue. I only have one form option for my directory login right now. Is this a UserWP solution, or a GeoDirectory solution?
April 13, 2020 at 8:17 pm #7926Which form are you trying to work with?
April 13, 2020 at 8:43 pm #7927When I go under Form Builder in UserWP I only have 2 options: Account and Register. It’s for my geodirectory.
https://www.bernieportal.com/broker-directory-login
https://www.bernieportal.com/payroll-directory-loginApril 13, 2020 at 8:55 pm #7929Yes, those are the forms for UsersWP.
GeoDirectory forms show on the add-listing page. The fields are controlled in the Custom Fields tab.
April 15, 2020 at 1:28 pm #7955Ok, so how do I add fields under my custom fields tab? Will that help to give me 2 different forms?
April 15, 2020 at 8:30 pm #7962If you have two CPTs, then there are already 2 different forms, they show on the add listing page.
Add links to the right form using the GD Endpoints:
https://wpgeodirectory.com/docs-v2/geodirectory/navigation/
Please post further GD related questions to https://wpgeodirectory.com/support/
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket