Show a section based on user role

Hello, I’m trying to create a page with several sections, and I’d like to show sections based on user roles. So section 1 on the page shows only to ‘administrator’ and ‘custom_role_1’ and section 2 on the page shows only to ‘administrator’ and ‘custom_role_2’ - is there any way to achieve this?

I found a way to hide sections with classes based user roles, but that doesn’t work because SOMETIMES a user will be assigned to multiple roles and need to see multiple sections. So the ‘hidden based on role’ method doesn’t work because they cancel each other out.

Thanks!

Hi Vaughn,

Thank you for reaching out to us. This probably can be achieved with the combination of shortcodes http://demo.theme.co/integrity-1/shortcodes/ and a third party plugin https://wordpress.org/plugins/private-content/ You can use the content band shortcode within the private content shortcode but please note that we cannot provide support for third party plugins or scripts as our support policy in the sidebar states due to the fact that there is simply no way to account for all of the potential variables at play when using another developer’s plugin or script.

Thank you for your understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.