Custom rules not working
-
This is the current code of a test page:
[content_control roles=”Users-A,Administrator,Users-B” message=”You don’t have access to this.”]
Any logged in user can see this
[/content_control]
[content_control roles=”Users-A” message=”You are not a User-A.”]
Only Users-A can see this
[/content_control]
[content_control roles=”Administrator” message=”You are not an Admin.”]
Only Administrators can see this ??
[/content_control]
[content_control roles=”Users-B” message=”You are not a User-B.”]
Only Users-B can see this.
[/content_control]
[content_control message=”You are an idot”]
You are logged in and can see this
[/content_control]
Logged in as an Administrator, this is what I get:
You don’t have access to this.
You are not a User-A.
You are not an Admin.
You are not a User-B.
You are logged in and can see this
So using the shortcode with out any rules, I can see the content (expected), but the rule for just Administrators fails – testing the other roles, I get the same results.
- The topic ‘Custom rules not working’ is closed to new replies.