Skip Navigation

[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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 11 replies, has 2 voices.

Last updated by Minesh 1 year, 5 months ago.

Assisted by: Minesh.

Author
Posts
#2609269

Hello,

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...

Thanks in advance,
Sinisa

#2609479

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Basically you can control the post type access based on the role:
- https://toolset.com/course-lesson/setting-access-control/

For a specific post you can create a post group to restrict the permission for specific post:
- https://toolset.com/course-lesson/restricting-access-to-pages/#create-a-post-group-for-pages-restricted-to-logged-in-users

#2609523

That is for a posts group...
So, does it mean, there is no option to limit access to some users to a single specific post (Mike's gym )?

#2609579

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

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.

#2611079

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...

#2611295

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Here is a membership website tutorial that you may refer and know how you can build membership website using Toolset:
- https://toolset.com/forums/topic-tag/membership/
- https://toolset.com/course/wordpress-membership-sites/

You can even use our free test platform http://www.discover-wp.com and create a test site using any of our reference site we offer:
- https://discover-wp.com/site-templates

Here is the reference site for membership:
- https://discover-wp.com/site-types/paint-your-world-membership-site/

#2611655

I haven't found option for a "restricted access to some custom post for a specific user (username).

What should I do for a moneyback?

#2611669

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

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.

#2612175

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.

Thanks in advance!

#2612177

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

What I've done is, I've installed the framework installer plugin to the sandbox site I shared:
- https://toolset.com/course-lesson/using-framework-installer-to-install-reference-sites/

Now, you can install any of the reference site you want to play on sandbox site:
- hidden link

In your case I suggest you should install the "Toolset Blocks and Woocommerce" or any of the suitable site you think would work for you and try to follow the following doc:
- https://toolset.com/course-lesson/charge-users-for-submitting-content/
- https://toolset.com/course-lesson/charge-users-for-registering-premium-accounts/

#2612187

No, I don't need anything for "charge or charginig" , my question was how "to change" (changing not charging).

Ok. I'll create basics on the test site then we can go further...

Where to see username and password for the : hidden link
?

#2612509

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

You can auto-login to the site using the following link and you do not require to enter username and password.
- hidden link