I created a page with a template.
I set a visibility condition to the template:
Whatewer I change (show if / do not show if | equals / doesn’t equal) the page and its content (template content) is always displayed for a user with role “fan”. The user owns only one role: “fan”.
- WordPress version: 6.0.2
- Gutenberg Plugin version: N/A
- Cwicly Plugin version: 18.104.22.168
- Cwicly Theme version: 1.0.3
Sorry to hear about this. Indeed this does seem strange.
Unfortunately, I don’t seem to be able to reproduce this on my end.
Would it be possible for you to provide email@example.com with a temporary access to this installation? This way we can better see what’s going on.
I will ASAP
Thank you @Araminta
Was @Araminta able to help you out on this or are you still experiencing problems using conditions for the User Role?
Thanks for digging up this topic.
I gave the admin access to support but, in fact, we didn’t finalize this issue.
I will check again and keep you posted ASAP.
I made a test a few minuts ago and the issue remains.
I created a template named: Fan-1-mois
I created a page (also named Fan-1-mois) linked to link to template fan-1-mois.
I set up a visibility condition to the template (in Themer):
Do not show if > User Role > doesn’t equal > fan1mois
I logout so I don’t have any role.
The page displayed.
I changed the condition to:
Do not show if > User Role > equals > fan1mois
The page is displayed again.
I logged in with a user with role = fan1mois → same issues.
Hope that these details help.
If it is not enough, you are welcome to check as admin in my Wordpress. I will transfer a new access as soon as request.
Bringing this one back up.
I think that you had a conversation with @Araminta who confirmed that the issue wasn’t with the visibility conditions themselves.
You were applying the template directly from the page editor, which trumps any set of rules set in the conditions modal.
In any case, you can now set templates for specific pages from the Cwicly Themer with 22.214.171.124, which in turn will allow you to specify which pages you don’t want to apply the template.
If there is anything else you need, please don’t hesitate.