[Resolved] How to limit user access to only one specific custom post with Toolset Access
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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
how can I limit user access only to a on particular or single custom post?
User should sign in only for that post with various user roles,....
Example:
The owner of a Gym lists his gym as a one listing (one specific custom post). Then other users can sign in to work in his gym like trainers, technicians, assistants, physiotherapists, exercisers etc.
So other users after Author's listing is published, can access and register for a some user role, but only for his listing, in this case his gym...
Then just on that listing, they will be able to: book a training session, enter a schedule, publish articles and more, depending on the capabilities of the registered user role...
Using access you can control the post types, taxonomies which works based on the user role.
You may use conditional display to show/hide things based on the value of user role or any other values you want to check.
There is no native way to control single post for user but if you can share admin access details and tell me who should be able to access and what you want to hide and what you want to show based on what roles I will review the structure and check if I can offer you any possible workaround if exists.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
I am still searching for a concept solution, I don't have almost finished frontend to show...
Different approach...
Is it possible to make that author (user) of a custom post be able to grant access to other users to his custom post? Other users would sign in to his listing via the Toolset form with their username and selected user role in the form..
So it should be membership website...
We can obviously restrict the user for specific custom post for specific user but then we will require to create a post group about restrict access and maybe few custom code but again its based on your requirement.
So before you chose to get money back, I offer you a sandbox site where you can setup your structure post types, taxonomies, custom fields etc..etc.. and users with roles and let me know for what user you want to restrict what.
Here is a sandbox site and you can auto-login to it using the following link:
- hidden link
Once you setup your structure and roles and users please let me know what exactly you want to restrict for what users.
Ok. When I prepare the website to be understandable enough (visible concept) for the intervention, I will give you access.
But let's go step by step, to at least prepare what the concept looks like.
Question:
How can I create a Toolset form for changing or adding an additional user role on the frontend (on the CP) for the users?
I thought it must go through the "edit user" form, but I don't see a way or a field to add such an entry to change or add a new user role.