Skip Navigation

[Resolved] Restrict access to only some field groups on front-end

This thread is resolved. Here is a description of the problem and solution.

Problem:

As per the example images, I want admin and some other user roles, to be able to view the entire content. I do not want front-end visitors to see the crossed-out "Acquisition Details" field groups.

Solution:

I suggest you try with Access shortcode [toolset_access] to setup limitation according to user's role, for example:

[toolset_access role="Administrator" operator="allow"] Only admin users are able to view the content...[/toolset_access]
[toolset_access role="Administrator" operator="deny"]Display some thing else for non-admin users[/toolset_access]

Relevant Documentation:

https://toolset.com/documentation/user-guides/access-control-texts-inside-page-content/

This support ticket is created 6 years, 7 months ago. 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by WayneM2821 6 years, 7 months ago.

Assisted by: Luo Yang.

Author
Posts
#901360
items-list-redacted.png
items-list.png

I want to restrict the front-end visitor from viewing certain field groups.

As per the example images, I want admin and some other user roles, to be able to view the entire content. I do not want front-end visitors to see the crossed-out "Acquisition Details" field groups.

If not possible, am I able to setup 2 layouts (for the same archive) with different access levels to accomplish this?

What is the link to your site? hidden link

#901503

Hello,

I suggest you try with Access shortcode [toolset_access] to setup limitation according to user's role, for example:

[toolset_access role="Administrator" operator="allow"] Only admin users are able to view the content...[/toolset_access]
[toolset_access role="Administrator" operator="deny"]Display some thing else for non-admin users[/toolset_access]

see our document:
https://toolset.com/documentation/user-guides/access-control-texts-inside-page-content/

#901513

This works fine. I have never pushed that button before. Thank You