restrict content for a specific a role(s)
-
Hi,
With the shortcode you can show content specific to a role.
What we would like is the opposite.
We have a couple of different (custom)roles, on the same page we would like to show information relevant for the people with those roles.
So we have a bit of shortcode for showing a bit of content for role A. (this works, no one else sees this but a person logged in with role A)
Then have a second bit of shortcode do the same for role B.
Then We would like a general text (basicly explaining how to get the other roles, what the benefits are etc.) to show to all other roles except those with role A or B.
I know we can do this by manually adding all the roles that should have access, but that is not really future proof, we want to use this approach on multiple pages. If a new role is added in the future, they might not see what they are suppose to, as you then have to manually update all the shortcodes.
Is this easy to do?
- The topic ‘restrict content for a specific a role(s)’ is closed to new replies.