Skip Navigation

[Resolved] Showing elements based on visitor role

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

Problem:

Show content based on user role.

Solution:

You can show particular content based on the user role by using this shortcode.
https://toolset.com/documentation/user-guides/access-control-texts-inside-page-content/

This allows you to restrict or display particular content based on a user's role.

This support ticket is created 5 years, 11 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by matthewL-7 5 years, 11 months ago.

Assisted by: Shane.

Author
Posts
#1183639

Hi,

Is it possible to show elements based on the users role viewing the page?

I found this: https://toolset.com/forums/topic/showing-elements-based-on-used-role-access-conditional-display-user-role/ but this is about author I want it to be based on the role viewing the page?

I couldn't find anything on this.

#1183640

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Matthew,

Thank you for contacting our support forum.

You can show particular content based on the user role by using this shortcode.
https://toolset.com/documentation/user-guides/access-control-texts-inside-page-content/

This allows you to restrict or display particular content based on a user's role.

Please let me know if this helps.
Thanks,
Shane

#1184238

My issue is resolved now. Thank you!