[Gelöst] How to "connect" a post type (listing) with "super user" / member?
This support ticket is created vor 4 Jahren, 1 Monat. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.
We are having a listing directory, where we already filled with information.
We will trying to get "owners" of those listings to create a user for them.
Once they are having a user created, they should be able to edit them listing (so one user is having his own listing).
Is there any documentation that you are following?
Normally what you would do in this scenario is change the post_author to be the user once they have registered.
I don't know what your workflow is, you will likely need some snippet of PHP to achieve this, but once it is done the users have "ownership" of the listing without needing to add post relationships.
We do the workflow manually. So change the author is done by hand.
I did some work and see, that it is working. Only one thing, how can I do, that my new user role can't create a new post? The role should be able to edit and update his own, but not create a new one.
Hello. Thank you for contacting the Toolset support.
If you have installed and activated the Toolset Access plugin, using the Toolset Access plugin you can control capabilities for your post type for the different roles.
Can you go to: Toolset => Access Control => Post Types tag => Locate your post type and make sure its managed by Access and set the capabilities you desired for your role?